Skip to content

Commit ddee16e

Browse files
authored
Merge pull request blackbeam#248 from cloneable/issue247-prio-queue-replacement
Replace crate priority_queue with keyed_priority_queue
2 parents e6bbf7c + bf4fe8c commit ddee16e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ flate2 = { version = "1.0", default-features = false }
1919
futures-core = "0.3"
2020
futures-util = "0.3"
2121
futures-sink = "0.3"
22+
keyed_priority_queue = "0.4"
2223
lazy_static = "1"
2324
lru = "0.10.0"
2425
mio = { version = "0.8.0", features = ["os-poll", "net"] }
@@ -27,7 +28,6 @@ once_cell = "1.7.2"
2728
pem = "2.0.1"
2829
percent-encoding = "2.1.0"
2930
pin-project = "1.0.2"
30-
priority-queue = "1"
3131
serde = "1"
3232
serde_json = "1"
3333
socket2 = "0.5.2"

src/conn/pool/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// modified, or distributed except according to those terms.
88

99
use futures_util::FutureExt;
10-
use priority_queue::PriorityQueue;
10+
use keyed_priority_queue::KeyedPriorityQueue;
1111
use tokio::sync::mpsc;
1212

1313
use std::{
@@ -92,7 +92,7 @@ impl Exchange {
9292

9393
#[derive(Default, Debug)]
9494
struct Waitlist {
95-
queue: PriorityQueue<QueuedWaker, QueueId>,
95+
queue: KeyedPriorityQueue<QueuedWaker, QueueId>,
9696
}
9797

9898
impl Waitlist {

0 commit comments

Comments
 (0)