Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion yamux/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ futures = { version = "0.3.0" }
tokio = { version = "1.0.0" }
tokio-util = { version = "0.7.0", features = ["codec"] }
log = "0.4"
nohash-hasher = "0.2"
metrics = { version = "0.24", optional = true }

futures-timer = { version = "3.0.2", optional = true }
Expand Down
3 changes: 1 addition & 2 deletions yamux/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use futures::{
channel::mpsc::{Receiver, Sender, UnboundedReceiver, UnboundedSender, channel, unbounded},
};
use log::{debug, log_enabled, trace};
use nohash_hasher::IntMap;
use tokio::io::{AsyncRead, AsyncWrite};
use tokio_util::codec::Framed;

Expand Down Expand Up @@ -68,7 +67,7 @@ pub struct Session<T> {
ping_id: u32,

// streams maps a stream id to a sender of stream,
streams: IntMap<StreamId, Sender<Frame>>,
streams: HashMap<StreamId, Sender<Frame>>,
// The StreamHandle not yet been polled
pending_streams: VecDeque<StreamHandle>,
// The buffer which will send to underlying network
Expand Down
Loading