Skip to content

Commit

Permalink
Replace crate priority_queue with keyed_priority_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneable committed Apr 24, 2023
1 parent e6bbf7c commit bf4fe8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ flate2 = { version = "1.0", default-features = false }
futures-core = "0.3"
futures-util = "0.3"
futures-sink = "0.3"
keyed_priority_queue = "0.4"
lazy_static = "1"
lru = "0.10.0"
mio = { version = "0.8.0", features = ["os-poll", "net"] }
Expand All @@ -27,7 +28,6 @@ once_cell = "1.7.2"
pem = "2.0.1"
percent-encoding = "2.1.0"
pin-project = "1.0.2"
priority-queue = "1"
serde = "1"
serde_json = "1"
socket2 = "0.5.2"
Expand Down
4 changes: 2 additions & 2 deletions src/conn/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// modified, or distributed except according to those terms.

use futures_util::FutureExt;
use priority_queue::PriorityQueue;
use keyed_priority_queue::KeyedPriorityQueue;
use tokio::sync::mpsc;

use std::{
Expand Down Expand Up @@ -92,7 +92,7 @@ impl Exchange {

#[derive(Default, Debug)]
struct Waitlist {
queue: PriorityQueue<QueuedWaker, QueueId>,
queue: KeyedPriorityQueue<QueuedWaker, QueueId>,
}

impl Waitlist {
Expand Down

0 comments on commit bf4fe8c

Please sign in to comment.