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

accelerated-dht: cleanup peer from message sender on disconnection #1009

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Dec 27, 2024

No description provided.

@sukunrt sukunrt requested review from guillaumemichel and a team as code owners December 27, 2024 16:52
@sukunrt sukunrt requested a review from aschmahmann December 27, 2024 16:52
@sukunrt sukunrt force-pushed the sukun/cleanup-accelerated-dht branch from de2d52f to e6be480 Compare December 27, 2024 22:49
if !ok {
return
}
defer dht.peerConnectednessSubscriber.Close()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be moved up so that dht.peerConnectednessSubscriber.Close() gets called even if the type assertion returns false?

Comment on lines +236 to +237
}
if pc.Connectedness != network.Connected {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
if pc.Connectedness != network.Connected {
} else if pc.Connectedness != network.Connected {

@gammazero gammazero added the need/author-input Needs input from the original author label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/author-input Needs input from the original author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants