-
Notifications
You must be signed in to change notification settings - Fork 7
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
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.
Looks good to me. Nice!
Only one small comment.
protocols/gossipsub/src/config.rs
Outdated
/// interpreted as the message id. | ||
message_id_fn: fn(&GenericGossipsubMessage<T>) -> MessageId, | ||
|
||
fast_message_id_fn: Option<fn(&RawGossipsubMessage) -> MessageId>, |
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.
Can we add some description to this guy
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.
Oh forgot that, added a description now.
…d function return type to avoid confusing message ids with fast message ids.
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
No description provided.