-
Notifications
You must be signed in to change notification settings - Fork 115
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
provider: simplify reprovide #890
Conversation
e7bea46
to
ecd5683
Compare
ecd5683
to
46fab87
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.
The stopAndEmptyTimer
is not needed since go.123 is required. Call the timer's Stop
method instead. Handled in change 0301460
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 noted by @aschmahmann : If your node reboots do you re-advertise all your data again even if it's within the reprovide interval?
If this is an intended behavior change then it should be documetned in release notes.
Right, I missed why the reprovide times were persisted to the datastore. I reverted and documented this behavior. I also corrected a corner case. Previously, a node rebooting, that would have have to reprovide in In the fix, the first provide is either Added a changelog entry, since this last change actually modifies the behavior. |
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.
LGTM
Follow up to #871 and part of https://github.com/ipshipyard/roadmaps/issues/6 / https://github.com/ipshipyard/roadmaps/issues/7
Hopefully it will help with ipfs/kubo#10714Previous behavior was hanging on a
select
waiting for context to be cancelled.If the warning message🔔🔔🔔 YOU ARE FALLING BEHIND DHT REPROVIDES! 🔔🔔🔔
keeps coming, while thereprovideInterval
is set to0
, it means thatReprovide
was called (probably fromkubo
, withipfs routing reprovide
?).EDIT: the reprovide warning issue seems to come from
kubo