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

node/p2p: Deduplicate PubSub msgs #237

Merged
merged 1 commit into from Nov 23, 2021
Merged

node/p2p: Deduplicate PubSub msgs #237

merged 1 commit into from Nov 23, 2021

Conversation

Wondertan
Copy link
Member

Closes #236

@Wondertan Wondertan self-assigned this Nov 23, 2021
@renaynay renaynay changed the title Deduplicate PubSub msgs node/p2p: Deduplicate PubSub msgs Nov 23, 2021
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

lint

Copy link
Member

@adlerjohn adlerjohn left a 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

@Wondertan Wondertan merged commit 21f1bc9 into main Nov 23, 2021
@Wondertan Wondertan deleted the hlib/pubsub-dedup branch November 23, 2021 15:26
@@ -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),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pubsub.WithMessageIdFn(hashMsgID),
pubsub.WithMessageIDFn(hashMsgID),

Copy link
Member Author

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

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.

service/header: deduplicate Header msgs in pubsub
4 participants