mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 02:31:20 +00:00
Fix doctest in libp2p-swarm
This commit is contained in:
parent
81cfc3273b
commit
c6e917073b
@ -77,7 +77,7 @@
|
||||
//! # fn main() {
|
||||
//! let tokio_core = tokio_core::reactor::Core::new().unwrap();
|
||||
//! let tcp_transport = libp2p_tcp_transport::TcpConfig::new(tokio_core.handle());
|
||||
//! let upgraded = tcp_transport.with_upgrade(libp2p_swarm::PlainText);
|
||||
//! let upgraded = tcp_transport.with_upgrade(libp2p_swarm::PlainTextConfig);
|
||||
//!
|
||||
//! // upgraded.dial(...) // automatically applies the plain text protocol on the socket
|
||||
//! # }
|
||||
|
Loading…
x
Reference in New Issue
Block a user