Skip to content

Commit

Permalink
Update swarm_nl/src/core/prelude.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sacha Lansky <[email protected]>
  • Loading branch information
thewoodfish and sacha-l authored Jul 30, 2024
1 parent c8583a7 commit 29c5710
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions swarm_nl/src/core/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,16 @@ pub mod gossipsub_cfg {
pub list: HashSet<PeerId>,
}

/// GossipSub configuration
/// GossipSub configuration.
pub enum GossipsubConfig {
/// Default
/// A default configuration.
Default,
/// Custom
/// A custom configuration.
///
/// # Fields
///
/// - `config`: The custom configuration for gossipsub.
/// - `auth`: The signature authenticity check.
Custom {
config: gossipsub::Config,
auth: gossipsub::MessageAuthenticity,
Expand Down

0 comments on commit 29c5710

Please sign in to comment.