Skip to content

Commit 268fddf

Browse files
committed
fix: lint and test
1 parent b5229d8 commit 268fddf

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Cargo.lock

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

crates/derivation-pipeline/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ alloy-primitives = { workspace = true, features = ["getrandom"] }
4040
criterion = { package = "codspeed-criterion-compat", version = "4.0.2", features = ["async", "async_tokio"] }
4141
eyre.workspace = true
4242
rollup-node-providers = { workspace = true, features = ["test-utils"] }
43-
reth-tracing.workspace = true
4443
reqwest.workspace = true
4544
serde_json.workspace = true
4645
scroll-db = { workspace = true, features = ["test-utils"] }
4746
scroll-codec = { workspace = true, features = ["test-utils"] }
48-
tempfile = "3.20.0"
4947
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
5048

5149
[features]

crates/derivation-pipeline/benches/pipeline.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use alloy_primitives::{Bytes, B256};
66
use criterion::{criterion_group, criterion_main, Criterion};
77
use futures::StreamExt;
8-
use reth_tracing::init_test_tracing;
98
use rollup_node_primitives::{BatchCommitData, BatchInfo, L1MessageEnvelope};
109
use rollup_node_providers::{
1110
test_utils::MockL1Provider, FullL1Provider, L1Provider, S3BlobProvider,
@@ -57,9 +56,13 @@ fn setup_full_provider(
5756
})
5857
}
5958

59+
/// The L1 provider factory function.
60+
type L1ProviderFactory<P> =
61+
Box<dyn Fn(Arc<Database>) -> Pin<Box<dyn Future<Output = P> + Send>> + Send>;
62+
6063
/// Returns a pipeline with a provider initiated from the factory function.
6164
async fn setup_pipeline<P: L1Provider + Clone + Send + Sync + 'static>(
62-
factory: Box<dyn Fn(Arc<Database>) -> Pin<Box<dyn Future<Output = P> + Send>> + Send>,
65+
factory: L1ProviderFactory<P>,
6366
) -> DerivationPipeline<P> {
6467
// load batch data in the db.
6568
let db = Arc::new(setup_test_db().await);
-128 KB
Binary file not shown.

0 commit comments

Comments
 (0)