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

fix(autorelay): Move relayFinder peer disconnect cleanup to separate goroutine #3105

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

MarcoPolo
Copy link
Collaborator

Moves the cleanup of disconnected peers to its own Goroutine to consume these events in a timely manner (and avoid stalling libp2p).

The delay from consuming the events is likely from the refreshReservations that happens in the work loop.

@MarcoPolo MarcoPolo requested a review from sukunrt December 17, 2024 23:57
@MarcoPolo MarcoPolo changed the title fix: Move relayFinder peer disconnect cleanup to separate goroutine fix(autorelay): Move relayFinder peer disconnect cleanup to separate goroutine Dec 17, 2024
@MarcoPolo MarcoPolo merged commit aa7c048 into master Dec 18, 2024
11 checks passed
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.

"autorelay (relay finder)" is a slow consumer of event.EvtPeerConnectednessChanged
2 participants