File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 232
232
//! yamux::Config::default,
233
233
//! )?
234
234
//! .with_behaviour(|_| ping::Behaviour::default())?
235
- //! .with_swarm_config(|cfg| cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))) // Allows us to observe pings indefinitely.
235
+ //! .with_swarm_config(|cfg| {
236
+ //! cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))
237
+ //! }) // Allows us to observe pings indefinitely.
236
238
//! .build();
237
239
//!
238
240
//! Ok(())
285
287
//! yamux::Config::default,
286
288
//! )?
287
289
//! .with_behaviour(|_| ping::Behaviour::default())?
288
- //! .with_swarm_config(|cfg| cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))) // Allows us to observe pings indefinitely.
290
+ //! .with_swarm_config(|cfg| {
291
+ //! cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))
292
+ //! }) // Allows us to observe pings indefinitely.
289
293
//! .build();
290
294
//!
291
295
//! // Tell the swarm to listen on all interfaces and a random, OS-assigned
331
335
//! yamux::Config::default,
332
336
//! )?
333
337
//! .with_behaviour(|_| ping::Behaviour::default())?
334
- //! .with_swarm_config(|cfg| cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))) // Allows us to observe pings indefinitely.
338
+ //! .with_swarm_config(|cfg| {
339
+ //! cfg.with_idle_connection_timeout(Duration::from_secs(u64::MAX))
340
+ //! }) // Allows us to observe pings indefinitely.
335
341
//! .build();
336
342
//!
337
343
//! // Tell the swarm to listen on all interfaces and a random, OS-assigned
You can’t perform that action at this time.
0 commit comments