Skip to content

Commit

Permalink
Update rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Dec 15, 2022
1 parent 4fc8ce4 commit 87b15be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protocols/gossipsub/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ pub struct Gossipsub<
/// Events that need to be yielded to the outside when polling.
events: VecDeque<NetworkBehaviourAction<GossipsubEvent, GossipsubHandler>>,

/// Events that need to be yielded to the outside when polling.
/// Pending messages to be sent to peers.
///
/// This buffer stores the message in an `Arc` because the same message is often sent to several
/// peers. This should optimize the memory footprint.
pending_messages: VecDeque<(PeerId, Arc<rpc_proto::Rpc>)>,

/// Pools non-urgent control messages between heartbeats.
Expand Down

0 comments on commit 87b15be

Please sign in to comment.