Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
doc: correct Swarm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaslong committed Oct 7, 2020
1 parent 23fda6e commit d5f4c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod transport;
pub use addr::{MultiaddrWithPeerId, MultiaddrWithoutPeerId};
pub use {behaviour::KadResult, swarm::Connection};

/// An IPFS swarm.
/// Type alias for [`libp2p::Swarm`] running the [`behaviour::Behaviour`] with the given [`IpfsTypes`].
pub type TSwarm<T> = Swarm<behaviour::Behaviour<T>>;

/// Defines the configuration for an IPFS swarm.
Expand All @@ -30,7 +30,7 @@ pub struct SwarmOptions {
pub bootstrap: Vec<(Multiaddr, PeerId)>,
/// Enables mdns for peer discovery and announcement when true.
pub mdns: bool,
/// Custom Kademlia protocol name.
/// Custom Kademlia protocol name, see [`IpfsOptions::kad_protocol`].
pub kad_protocol: Option<String>,
}

Expand Down

0 comments on commit d5f4c72

Please sign in to comment.