Skip to content

Commit

Permalink
Merge branch 'main' into api/driver-add-auction-id-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrug committed Nov 20, 2024
2 parents 54756b7 + ee4a8ab commit 769ec40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
]
},
"extensions": [
"rust-lang.rust-analyzer",
"serayuzgur.crates"
"rust-lang.rust-analyzer"
]
}
},
Expand Down
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 769ec40

Please sign in to comment.