diff --git a/libp2p/src/builder.rs b/libp2p/src/builder.rs index a51a269b133..60b977f4397 100644 --- a/libp2p/src/builder.rs +++ b/libp2p/src/builder.rs @@ -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(())