mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Use intra doc in network-gossip (#10501)
* Use intra doc in network-gossip So that we could jump to the definition easily. * cargo +nightly fmt --all
This commit is contained in:
@@ -39,7 +39,7 @@ use std::{
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
/// Wraps around an implementation of the `Network` crate and provides gossiping capabilities on
|
||||
/// Wraps around an implementation of the [`Network`] trait and provides gossiping capabilities on
|
||||
/// top of it.
|
||||
pub struct GossipEngine<B: BlockT> {
|
||||
state_machine: ConsensusGossip<B>,
|
||||
@@ -56,7 +56,7 @@ pub struct GossipEngine<B: BlockT> {
|
||||
}
|
||||
|
||||
/// A gossip engine receives messages from the network via the `network_event_stream` and forwards
|
||||
/// them to upper layers via the `message sinks`. In the scenario where messages have been received
|
||||
/// them to upper layers via the `message_sinks`. In the scenario where messages have been received
|
||||
/// from the network but a subscribed message sink is not yet ready to receive the messages, the
|
||||
/// messages are buffered. To model this process a gossip engine can be in two states.
|
||||
enum ForwardingState<B: BlockT> {
|
||||
|
||||
Reference in New Issue
Block a user