Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Apr 29, 2024

Additional comments and variables for:

41fc76a

@mh0lt mh0lt closed this Apr 29, 2024
@mh0lt mh0lt deleted the add_params_and_comments branch April 29, 2024 21:59
@mh0lt mh0lt restored the add_params_and_comments branch April 30, 2024 16:39
@mh0lt mh0lt reopened this Apr 30, 2024
Copy link
Owner

@anacrolix anacrolix left a 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 {
Copy link
Owner

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.

Copy link
Collaborator

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?

Copy link
Owner

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()
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants