Skip to content

Commit

Permalink
docs(libp2p): mention SwarmBuilder::with_swarm_config
Browse files Browse the repository at this point in the history
Pull-Request: #4720.
  • Loading branch information
mxinden authored Oct 24, 2023
1 parent 3b2acd2 commit 6456bf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libp2p/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ mod select_security;
/// libp2p_yamux::Config::default,
/// )?
/// .with_behaviour(|_key, relay| MyBehaviour { relay })?
/// .with_swarm_config(|cfg| {
/// // Edit cfg here.
/// cfg
/// })
/// .build();
/// #
/// # Ok(())
Expand Down

0 comments on commit 6456bf5

Please sign in to comment.