Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: use futures iterator instead of tokio-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jun 7, 2024
1 parent 4456338 commit 4783f1a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
clap = { version = "4.4.6", features = ["derive", "env"] }
tokio = { version = "1.33.0", features = ["full"] }
tokio-stream = "0.1.15"
serde = "1.0.183"
serde_path_to_error = "0.1.14"
serde_json = "1.0.107"
Expand Down
1 change: 0 additions & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ serde = { workspace = true }
serde_json = { workspace = true }
futures = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
alloy = { workspace = true }
async-stream = "0.3.5"
4 changes: 2 additions & 2 deletions common/src/block_interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ impl BlockInterval {
let num = num
.as_number()
.ok_or(BlockIntervalError::InvalidBlockNumber(num.to_string()))?;
Ok(tokio_stream::iter(num..num + 1))
Ok(futures::stream::iter(num..num + 1))
}
BlockInterval::Range(range) => Ok(tokio_stream::iter(range)),
BlockInterval::Range(range) => Ok(futures::stream::iter(range)),
_ => Err(BlockIntervalError::IntoBoundedStreamError),
}
}
Expand Down

0 comments on commit 4783f1a

Please sign in to comment.