-
Notifications
You must be signed in to change notification settings - Fork 57
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
Improvements for fetching results from redis. #282
Conversation
Otherwise, waits 1 second. This speeds up the fetch of results if it is supposed to be more results and don't stress redis unnecessary.
This reduce the amount of queries to redis.
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 82.80% 81.99% -0.81%
==========================================
Files 9 9
Lines 1477 1505 +28
==========================================
+ Hits 1223 1234 +11
- Misses 254 271 +17
Continue to review full report at Codecov.
|
ospd_openvas/daemon.py
Outdated
got_results = False | ||
if not got_results: | ||
time.sleep(1) | ||
time.sleep(0.05) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be this in an else branch?
time.sleep(0.05) | |
else: | |
time.sleep(0.05) |
Extend results with optional URI parameter
No description provided.