diff --git a/Cargo.toml b/Cargo.toml index cde43e16..6134f35d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,6 @@ path = "bin/tree_availability_service.rs" name = "state-bridge-service" path = "bin/state_bridge_service.rs" - [[bench]] name = "tree_data" harness = false diff --git a/benches/tree_data.rs b/benches/tree_data.rs index 129fa230..149389cb 100644 --- a/benches/tree_data.rs +++ b/benches/tree_data.rs @@ -24,6 +24,7 @@ fn generate_random_identities(num_identities: usize) -> Vec { identities } + async fn setup_tree_data() -> TreeData { let tree = PoseidonTree::::new(TREE_DEPTH, Hash::ZERO); let tree_data = TreeData::new(tree, TREE_HISTORY_SIZE); diff --git a/crates/ethers-throttle/src/lib.rs b/crates/ethers-throttle/src/lib.rs index f67ae0af..8e5f5d9c 100644 --- a/crates/ethers-throttle/src/lib.rs +++ b/crates/ethers-throttle/src/lib.rs @@ -2,7 +2,7 @@ use std::num::NonZeroU32; use std::sync::Arc; use async_trait::async_trait; -use ethers::providers::{JsonRpcClient, ProviderError}; +use ethers::providers::JsonRpcClient; use governor::clock::{QuantaClock, QuantaInstant}; use governor::middleware::NoOpMiddleware; use governor::state::{InMemoryState, NotKeyed};