mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 18:11:22 +00:00
refactor(gossipsub): don't store messages within Arc
(#3243)
Currently, we store messages to be sent to the `ConnectionHandler` in an `Arc`. However, we never actually clone these messages as we can see with this patch, hence we remove this wrapping. Related: https://github.com/libp2p/rust-libp2p/pull/3242
This commit is contained in:
@ -64,7 +64,7 @@ pub enum HandlerEvent {
|
||||
}
|
||||
|
||||
/// A message sent from the behaviour to the handler.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug)]
|
||||
pub enum GossipsubHandlerIn {
|
||||
/// A gossipsub message to send.
|
||||
Message(crate::rpc_proto::Rpc),
|
||||
|
Reference in New Issue
Block a user