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

Merged
merged 2 commits into from
Jan 9, 2025

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
fullrt/dht.go Outdated
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?

fullrt/dht.go Outdated
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
@MarcoPolo MarcoPolo self-requested a review January 6, 2025 17:09
@lidel lidel mentioned this pull request Jan 7, 2025
53 tasks
@gammazero gammazero merged commit c35df8a into master Jan 9, 2025
7 checks passed
@gammazero gammazero deleted the sukun/cleanup-accelerated-dht branch January 9, 2025 19:13
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.

3 participants