Skip to content

Commit 8300f03

Browse files
committed
removes unnecessary SimItem usage from cache updater
1 parent b4c64da commit 8300f03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tasks/block.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use alloy::{
77
eips::{BlockId, BlockNumberOrTag::Latest},
88
providers::Provider,
99
};
10-
use signet_sim::{BlockBuild, BuiltBlock, SimCache, SimItem};
10+
use signet_sim::{BlockBuild, BuiltBlock, SimCache};
1111
use signet_types::{SlotCalculator, config::SignetSystemConstants};
1212
use std::{
1313
sync::{
@@ -219,6 +219,7 @@ impl Simulator {
219219
submit_sender: mpsc::UnboundedSender<BuiltBlock>,
220220
) -> JoinHandle<()> {
221221
tracing::debug!("starting builder task");
222+
222223
tokio::spawn(async move { self.run_simulator(constants, cache, submit_sender).await })
223224
}
224225

@@ -315,13 +316,13 @@ async fn cache_updater(
315316
maybe_tx = tx_receiver.recv() => {
316317
if let Some(tx) = maybe_tx {
317318
tracing::debug!(tx = ?tx.hash(), "received transaction");
318-
cache.add_item(SimItem::Tx(tx), p);
319+
cache.add_item(tx, p);
319320
}
320321
}
321322
maybe_bundle = bundle_receiver.recv() => {
322323
if let Some(bundle) = maybe_bundle {
323324
tracing::debug!(bundle = ?bundle.id, "received bundle");
324-
cache.add_item(SimItem::Bundle(bundle.bundle), p);
325+
cache.add_item(bundle.bundle, p);
325326
}
326327
}
327328
}

0 commit comments

Comments
 (0)