Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat!: shared mutable configurable delays #6104
feat!: shared mutable configurable delays #6104
Changes from 3 commits
df451ff
d0fe460
80a860e
b400ba0
503aa01
f921f93
381a1f1
c6b0fa1
b47e5db
73ac5f5
a9e7c75
c095daa
27e64d6
ddf6d4e
d004ca5
88b6040
ca2b228
f95f434
ad7fcd6
9512976
bbc4a67
ce8ea8a
d8e9810
9053239
4fed5d3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
There are a lot of / in here. Inconsistent number of / for comments throughout the code.
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.
The scheduling is always a little weird in my head. So for this case, if I have an initial delay of 3 days, and do any reduction, that change will take effect such that the value can be changed after 3 days.
Can you explain again the reason of doing that in here. Just that when I read this, my simply mind is like "why?", if you had the original 3 day delay as the block of change that seems easier to follow.
The benefit was that you avoid having this weird "almost change" period where if it is queued and I insert a change at block N, it might take 3 days before effective and N+1 might take 1 day (with your example). The comment is inside the function, but when I just read here I go "huh" and then write all this blabber before I see it 😆
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.
I'm not sure if you're asking 'why are we waiting the minimum amount of time instead of always simply waiting a longer time?', or if you're not sure why this is the correct amount of time to wait 🤔
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.
Kinda both actually. When I read:
It is not instantly clear to me why we use that and why that is the shortest time (i might be idiot) and I had to think about it 🤯.
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.
From past experience it can be very annoying to be forced to wait extra time when you don't need to (e.g. if decreasing a delay from a month to two weeks, having to wait a total of 4 vs 6 weeks is a big difference). Hopefully most people will be relatively satisfied with the behavior and not be nerd-sniped by the API reference?
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.
Sure, I get why, was just not something that instantly clicked for me just from the comment. But think that might just be me reading comprehension 😆