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: sync leave() function #378

Merged
merged 2 commits into from
Dec 1, 2022
Merged

fix: sync leave() function #378

merged 2 commits into from
Dec 1, 2022

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Nov 30, 2022

Motivation

Description

  • Make leave() function as sync

part of ChainSafe/lodestar#4818

@twoeths twoeths requested a review from a team as a code owner November 30, 2022 09:17
src/index.ts Outdated
@@ -1843,15 +1841,17 @@ export class GossipSub extends EventEmitter<GossipsubEvents> implements PubSub<G
this.metrics?.onLeave(topic)

// Send PRUNE to mesh peers
this.mesh.delete(topic)
Copy link
Member

@wemeetagain wemeetagain Nov 30, 2022

Choose a reason for hiding this comment

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

this line should be kept where it was. Or at least below L1845

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, good catch!

@wemeetagain wemeetagain merged commit ac7fd52 into master Dec 1, 2022
@wemeetagain wemeetagain deleted the tuyen/synced-leave branch December 1, 2022 01:53
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.

2 participants