-
Notifications
You must be signed in to change notification settings - Fork 925
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
node/p2p: Deduplicate PubSub msgs #237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint
9066e09
to
85f445e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh I'm approoooving
@@ -29,6 +31,7 @@ func PubSub(cfg Config) func(pubSubParams) (*pubsub.PubSub, error) { | |||
opts := []pubsub.Option{ | |||
pubsub.WithPeerExchange(cfg.PeerExchange || cfg.Bootstrapper), | |||
pubsub.WithDirectPeers(fpeers), | |||
pubsub.WithMessageIdFn(hashMsgID), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pubsub.WithMessageIdFn(hashMsgID), | |
pubsub.WithMessageIDFn(hashMsgID), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be transferred to pubsub. The func is not defined by us
Closes #236