Skip to content

Commit

Permalink
Merge branch 'main' into devcontainer-drop-crates-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug authored Nov 20, 2024
2 parents d7828c1 + be06e4f commit 373e3ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/shared/src/event_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use {
futures::{future, Stream, StreamExt, TryStreamExt},
std::sync::Arc,
tokio::sync::Mutex,
tracing::Instrument,
};

// We expect that there is never a reorg that changes more than the last n
Expand Down Expand Up @@ -537,7 +538,12 @@ where
S: EventStoring<C::Event> + Send + Sync,
{
async fn run_maintenance(&self) -> Result<()> {
self.lock().await.update_events().await
let mut inner = self.lock().await;
let address = inner.contract.get_events().filter.address;
inner
.update_events()
.instrument(tracing::info_span!("address", ?address))
.await
}

fn name(&self) -> &str {
Expand Down

0 comments on commit 373e3ca

Please sign in to comment.