Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Adding pagination to ListOverlappingIPs to fix context deadline error. #438

Conversation

adilGhaffarDev
Copy link

What this PR does / why we need it:
ListOverlappingIPs function fails with error : failed to list all OverLappingIPs: client rate limiter Wait returned an error: context deadline exceeded if there are a large number of IPs. This pr adds pagination to ListOptions so instead of trying to get all ips at once, we get them in chunks of 50.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #389

Special notes for your reviewer (optional):
We can fix this issue another way by increasing timeout. But pagination seems like a better approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant