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

protocols/relay/src/v2: Remove empty peer entries in self.reservations #2464

Merged
merged 2 commits into from
Feb 1, 2022

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Jan 31, 2022

When a peer disconnects, reservations associated with that peer are removed from
the set of reservations of the peer. In case the set of reservations for the
peer is now empty, remove the entire peer.

Same when a reservation times out.

When a peer disconnects, reservations associated with that peer are removed from
the set of reservations of the peer. In case the set of reservations for the
peer is now empty, remove the entire peer.

Same when a reservation times out.
@divagant-martian
Copy link
Contributor

lgtm!

@mxinden mxinden merged commit 6338b25 into libp2p:master Feb 1, 2022
@mxinden mxinden mentioned this pull request Feb 1, 2022
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.

3 participants