-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Add variables and comments #938
Conversation
Webseed update timer
Close body in same go routine as do
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.
Oops, I forgot to submit this review.
if restart { | ||
goto start | ||
|
||
if !restart { |
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.
Something here doesn't feel right. I don't think this part of the code should be determining if updating is appropriate. Sorry to block on this so long, but a lot of the other changes seem worthwhile so I'm trying to minimize this change to a minimum so it can make sense in isolation.
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.
@mh0lt let's break it to 2 PR's?
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.
If you rebase you should find less changes are needed too. Thanks for your efforts.
@@ -142,6 +172,7 @@ func (ws *webseedPeer) handleUpdateRequests() { | |||
ws.peer.t.cl.lock() | |||
defer ws.peer.t.cl.unlock() | |||
ws.peer.maybeUpdateActualRequestState() | |||
ws.requesterCond.Signal() |
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 looks like it's very likely appropriate.
I think this is related to #932 (comment) and the same reasoning applies. Thanks! |
Additional comments and variables for:
41fc76a