-
Notifications
You must be signed in to change notification settings - Fork 418
[LSPS5] Change notification cooldown time to 1 minute, also update docs #3994
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
[LSPS5] Change notification cooldown time to 1 minute, also update docs #3994
Conversation
👋 Thanks for assigning @tnull as a reviewer! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3994 +/- ##
==========================================
+ Coverage 88.74% 88.91% +0.17%
==========================================
Files 173 174 +1
Lines 124899 125114 +215
Branches 124899 125114 +215
==========================================
+ Hits 110841 111249 +408
+ Misses 11631 11354 -277
- Partials 2427 2511 +84
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This needs a rebase now.
ecf258c
to
43eeb48
Compare
rebase done! |
43eeb48
to
24712cf
Compare
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.
As mentioned elsewhere, we might need a spec change in parallel to this.
Also, nit: 'LSP5', 'dooldown' and 'alsp' typos in the commit message (which could otherwise also use a bit more detail what this change is and why we want it).
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
24712cf
to
d638113
Compare
lightning/blips#64 spec update PR |
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.
Thanks! Changes look good to me, but please fixup the typos in the commit message, as mentioned above.
@@ -429,7 +429,7 @@ where | |||
.last_notification_sent | |||
.get(¬ification.method) | |||
.map(|last_sent| now.duration_since(&last_sent)) | |||
.map_or(false, |duration| duration < DEFAULT_NOTIFICATION_COOLDOWN_HOURS) | |||
.map_or(false, |duration: Duration| duration < NOTIFICATION_COOLDOWN_TIME) |
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.
Why do we need this : Duration
suddenly?
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.
FYI force-pushed this small change without a fixup https://github.com/lightningdevkit/rust-lightning/compare/d638113b68b2de0ec02dd5d2a7574f7854d5005c..8b326536eed3eaff61d4c261dd5f83d96620f76b
d638113
to
8b32653
Compare
8b32653
to
c7694f4
Compare
also fixed the commit message. sorry about the typos! |
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.
Thanks, LGTM.
Simple enough, so landing this.
(the commit message could have still used some motiviation, etc ;P)
LSPS5 follow ups. Addressing comments #3975 (review) and #3975 (comment)
changes: