mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
core/src/transport: Poll Transport directly, remove Transport::Listener (#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.
This commit is contained in:
@ -23,9 +23,7 @@ use crate::{
|
||||
PollParameters,
|
||||
};
|
||||
use libp2p_core::{
|
||||
connection::{ConnectionId, ListenerId},
|
||||
multiaddr::Multiaddr,
|
||||
ConnectedPoint, PeerId,
|
||||
connection::ConnectionId, multiaddr::Multiaddr, transport::ListenerId, ConnectedPoint, PeerId,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use std::task::{Context, Poll};
|
||||
|
Reference in New Issue
Block a user