chore(deps): rm unused deps in downloaders (#1004)

This commit is contained in:
Matthias Seitz
2023-01-24 12:14:50 +01:00
committed by GitHub
parent 2ed8128e63
commit 167aa60ed2
4 changed files with 5 additions and 11 deletions

View File

@ -11,17 +11,14 @@ description = "Implementations of various block downloaders"
# reth
reth-interfaces = { path = "../../interfaces" }
reth-primitives = { path = "../../primitives" }
reth-rpc-types = { path = "../rpc-types" }
reth-eth-wire = { path= "../eth-wire" }
reth-db = { path = "../../storage/db" }
# async
async-trait = "0.1.58"
futures = "0.3"
futures-util = "0.3.25"
# misc
backon = "0.2.0"
tracing = "0.1.37"
thiserror = "1.0"
@ -29,6 +26,8 @@ thiserror = "1.0"
reth-db = { path = "../../storage/db", features = ["test-utils"] }
reth-interfaces = { path = "../../interfaces", features = ["test-utils"] }
reth-tracing = { path = "../../tracing" }
async-trait = "0.1.58"
assert_matches = "1.5.0"
once_cell = "1.17.0"
tokio = { version = "1.21.2", features = ["full"] }

View File

@ -250,10 +250,7 @@ mod tests {
let fut = BodiesRequestFuture::new(client.clone(), Arc::new(TestConsensus::default()))
.with_headers(headers.clone());
assert_eq!(
fut.await,
headers.into_iter().map(|h| BlockResponse::Empty(h)).collect::<Vec<_>>()
);
assert_eq!(fut.await, headers.into_iter().map(BlockResponse::Empty).collect::<Vec<_>>());
assert_eq!(client.times_requested(), 0);
}

View File

@ -1,4 +1,4 @@
#![warn(missing_docs, unreachable_pub)]
#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)]
#![deny(unused_must_use, rust_2018_idioms)]
#![doc(test(
no_crate_inject,
@ -10,7 +10,7 @@
/// The collection of algorithms for downloading block bodies.
pub mod bodies;
/// The collection of alhgorithms for downloading block headers.
/// The collection of algorithms for downloading block headers.
pub mod headers;
#[cfg(test)]