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

Implemented rate limit for shortscan cmd. #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

soerlemans
Copy link

Implemented rate limiting for short scan.
Let me know if you have any remarks pertaining to the feature implementation.

Another note it seems the source code has not been formatted using go fmt?

@soerlemans
Copy link
Author

soerlemans commented Dec 1, 2024

Changed rate limit value from float to integer.

@soerlemans
Copy link
Author

@bitquark ping for review

@irsdl
Copy link

irsdl commented Dec 31, 2024

This sounds like a good addition.

@irsdl
Copy link

irsdl commented Dec 31, 2024

@soerlemans can we use this to send a request every 2 seconds? If not, it is probably better to introduce throttles so it can wait some seconds based on the user input in between each request.

@soerlemans
Copy link
Author

@irsdl I tried it with a float before but faced some issues in commit: afd7091
I could reimplement if its desired.

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

Successfully merging this pull request may close these issues.

2 participants