-
Notifications
You must be signed in to change notification settings - Fork 47
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
[WIP]Only keep 1000 acked items #131
Conversation
b1009fa
to
d889105
Compare
previous implementation only delete 1000 items each clear_acked_data which causes confusion, since this commit may also surprise other people, I am holding merge from time being.
Codecov Report
@@ Coverage Diff @@
## master #131 +/- ##
=======================================
Coverage 95.62% 95.62%
=======================================
Files 15 15
Lines 1510 1510
Branches 162 162
=======================================
Hits 1444 1444
Misses 46 46
Partials 20 20
Continue to review full report at Codecov.
|
Since you're making a major version change, might be time to consider removing the default 1000 limit on clear_acked_data if it still exists in 5.x. Make setting the _MAX_ACKED_LENGTH one of the options instead. Seems to be a similar request to #82 |
For some reason, I thought you had gone from 4.x to 5.x. Must have been looking at another project. lol.
So I was thinking something like this..
|
I think there are two variables to look at with this request.
The description of the function is:
However, that's not what the function actually does. It removes 1000 items, but keeps latest 1000 items. So it deletes 1000- 2000 of the DESC return. For the readme description to reflect the behavior, the In the PR, you've set it to delete anything below the returned value, which is an efficient way to do it, but it changes the way the function behaves by default as you mentioned. The PR keeps the latest 1000 and delete everything else. That function is the exact opposite of the readme description, though from a feature perspective, I think this makes more sense. Since you're concerned with causing confusion with the commit, it might be important to determine if you want the feature to reflect the readme description, the current behavior, or something new. But in each case, the values of
|
previous implementation only delete 1000 items each
clear_acked_data which causes confusion, since this
commit may also surprise other people, I am holding
merge for the time being.
fixes #126