Skip to content

Commit

Permalink
debug: instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed May 3, 2024
1 parent b13fa34 commit 6272676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/builder/src/tasks/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ where
resp.json().await.map_err(Into::into)
}

#[instrument(skip_all, err)]
async fn construct_sig_request(&self, contents: &InProgressBlock) -> eyre::Result<SignRequest> {
let (sequence, confirm_by) = try_join!(self.get_next_sequence(), self.get_confirm_by())?;

Expand Down Expand Up @@ -185,7 +186,7 @@ where
Ok(())
}

#[instrument(skip(self, in_progress), err)]
#[instrument(skip_all, err)]
async fn handle_inbound(&self, in_progress: &InProgressBlock) -> eyre::Result<()> {
tracing::info!(txns = in_progress.len(), "handling inbound block");
let sig_request = self.construct_sig_request(in_progress).await?;
Expand Down

0 comments on commit 6272676

Please sign in to comment.