Skip to content

Commit

Permalink
core/src/transport: Poll Transport directly, remove Transport::Listen…
Browse files Browse the repository at this point in the history
…er (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.
  • Loading branch information
elenaf9 committed Jul 4, 2022
1 parent cd13da4 commit afc5a44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/behaviour.rs
Expand Up @@ -29,9 +29,8 @@ pub use as_server::{InboundProbeError, InboundProbeEvent};
use futures_timer::Delay;
use instant::Instant;
use libp2p_core::{
connection::{ConnectionId, ListenerId},
multiaddr::Protocol,
ConnectedPoint, Endpoint, Multiaddr, PeerId,
connection::ConnectionId, multiaddr::Protocol, transport::ListenerId, ConnectedPoint, Endpoint,
Multiaddr, PeerId,
};
use libp2p_request_response::{
handler::RequestResponseHandlerEvent, ProtocolSupport, RequestId, RequestResponse,
Expand Down

0 comments on commit afc5a44

Please sign in to comment.