mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-25 07:41:34 +00:00
swarm/: include ListenerId in SwarmEvents (#2123)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -298,8 +298,8 @@
|
||||
//! block_on(future::poll_fn(move |cx| loop {
|
||||
//! match swarm.poll_next_unpin(cx) {
|
||||
//! Poll::Ready(Some(event)) => {
|
||||
//! if let SwarmEvent::NewListenAddr(addr) = event {
|
||||
//! println!("Listening on {:?}", addr);
|
||||
//! if let SwarmEvent::NewListenAddr { address, .. }= event {
|
||||
//! println!("Listening on {:?}", address);
|
||||
//! }
|
||||
//! },
|
||||
//! Poll::Ready(None) => return Poll::Ready(()),
|
||||
|
Reference in New Issue
Block a user