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

Adds a fast message id function and an additional cache for it #68

Merged
merged 8 commits into from
Oct 9, 2020

Conversation

blacktemplar
Copy link

No description provided.

Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Looks good to me. Nice!
Only one small comment.

/// interpreted as the message id.
message_id_fn: fn(&GenericGossipsubMessage<T>) -> MessageId,

fast_message_id_fn: Option<fn(&RawGossipsubMessage) -> MessageId>,
Copy link
Member

Choose a reason for hiding this comment

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

Can we add some description to this guy

Copy link
Author

Choose a reason for hiding this comment

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

Oh forgot that, added a description now.

…d function return type to avoid confusing message ids with fast message ids.
@blacktemplar
Copy link
Author

I added now also an own type for fast message ids to make clear that the don't need to be related to message ids and do not have to be interchangeable or something.

# Conflicts:
#	protocols/gossipsub/src/behaviour.rs
#	protocols/gossipsub/src/behaviour/tests.rs
#	protocols/gossipsub/src/config.rs
#	protocols/gossipsub/src/lib.rs
@blacktemplar blacktemplar merged commit 88ee95e into gossipsub-v1.1 Oct 9, 2020
@AgeManning AgeManning deleted the fast-message-ids branch June 15, 2021 01:28
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