mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 22:31:33 +00:00
Fix copy-paste error in doc string (#1428)
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
@ -37,8 +37,7 @@ use std::{collections::VecDeque, iter, marker::PhantomData};
|
|||||||
use std::collections::hash_map::{DefaultHasher, HashMap};
|
use std::collections::hash_map::{DefaultHasher, HashMap};
|
||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
|
|
||||||
/// Network behaviour that automatically identifies nodes periodically, and returns information
|
/// Network behaviour that handles the floodsub protocol.
|
||||||
/// about them.
|
|
||||||
pub struct Floodsub<TSubstream> {
|
pub struct Floodsub<TSubstream> {
|
||||||
/// Events that need to be yielded to the outside when polling.
|
/// Events that need to be yielded to the outside when polling.
|
||||||
events: VecDeque<NetworkBehaviourAction<FloodsubRpc, FloodsubEvent>>,
|
events: VecDeque<NetworkBehaviourAction<FloodsubRpc, FloodsubEvent>>,
|
||||||
|
@ -46,8 +46,7 @@ use wasm_timer::{Instant, Interval};
|
|||||||
|
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
/// Network behaviour that automatically identifies nodes periodically, and returns information
|
/// Network behaviour that handles the gossipsub protocol.
|
||||||
/// about them.
|
|
||||||
pub struct Gossipsub<TSubstream> {
|
pub struct Gossipsub<TSubstream> {
|
||||||
/// Configuration providing gossipsub performance parameters.
|
/// Configuration providing gossipsub performance parameters.
|
||||||
config: GossipsubConfig,
|
config: GossipsubConfig,
|
||||||
|
Reference in New Issue
Block a user