Skip to content

Commit afc5a44

Browse files
authored
core/src/transport: Poll Transport directly, remove Transport::Listener (libp2p#2652)
Remove the concept of individual `Transport::Listener` streams from `Transport`. Instead the `Transport` is polled directly via `Transport::poll`. The `Transport` is now responsible for driving its listeners.
1 parent cd13da4 commit afc5a44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/behaviour.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ pub use as_server::{InboundProbeError, InboundProbeEvent};
2929
use futures_timer::Delay;
3030
use instant::Instant;
3131
use libp2p_core::{
32-
connection::{ConnectionId, ListenerId},
33-
multiaddr::Protocol,
34-
ConnectedPoint, Endpoint, Multiaddr, PeerId,
32+
connection::ConnectionId, multiaddr::Protocol, transport::ListenerId, ConnectedPoint, Endpoint,
33+
Multiaddr, PeerId,
3534
};
3635
use libp2p_request_response::{
3736
handler::RequestResponseHandlerEvent, ProtocolSupport, RequestId, RequestResponse,

0 commit comments

Comments
 (0)