Skip to content

Commit caa0f93

Browse files
committed
remove futures buffered
1 parent 653a6b3 commit caa0f93

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pulsebeam/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ metrics-exporter-prometheus = "0.17.2"
3939
pprof = { version = "0.15.0", features = ["flamegraph", "prost-codec", "protobuf"] }
4040
tokio-metrics = { version = "0.4.5", features = ["metrics-rs-integration"] }
4141
once_cell = "1.21.3"
42-
futures-buffered = "0.2.12"
4342
ahash = "0.8.12"
4443

4544
[dev-dependencies]

pulsebeam/src/shard.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::pin::Pin;
22

3-
use futures::StreamExt;
4-
use futures_buffered::FuturesUnorderedBounded;
3+
use futures::{StreamExt, stream::FuturesUnordered};
54
use pulsebeam_runtime::{actor, sync::Arc};
65

76
pub type ShardTask = Pin<Box<dyn futures::Future<Output = ()> + Send>>;
@@ -12,7 +11,7 @@ pub enum ShardMessage {
1211

1312
pub struct ShardActor {
1413
shard_id: usize,
15-
tasks: FuturesUnorderedBounded<ShardTask>,
14+
tasks: FuturesUnordered<ShardTask>,
1615
}
1716

1817
pub struct ShardMessageSet;
@@ -70,7 +69,7 @@ impl ShardActor {
7069
pub fn new(shard_id: usize) -> Self {
7170
Self {
7271
shard_id,
73-
tasks: FuturesUnorderedBounded::new(512),
72+
tasks: FuturesUnordered::new(),
7473
}
7574
}
7675
}

0 commit comments

Comments
 (0)