Skip to content

Commit 6701929

Browse files
committed
add back span
1 parent 73cd287 commit 6701929

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/tasks/submit/task.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,18 @@ impl SubmitTask {
146146
let result = loop {
147147
debug!(retries = bumpable.bump_count(), nonce = ?req.nonce, "attempting transaction send");
148148

149-
let inbound_result = match self.send_transaction(req.clone()).await {
150-
Ok(control_flow) => control_flow,
151-
Err(error) => {
152-
if let Some(value) = self.slot_still_valid(expected_slot) {
153-
return value;
149+
let inbound_result =
150+
match self.send_transaction(req.clone()).instrument(span.clone()).await {
151+
Ok(control_flow) => control_flow,
152+
Err(error) => {
153+
if let Some(value) = self.slot_still_valid(expected_slot) {
154+
return value;
155+
}
156+
// Log error and retry
157+
error!(%error, "error handling inbound block");
158+
ControlFlow::Retry
154159
}
155-
// Log error and retry
156-
error!(%error, "error handling inbound block");
157-
ControlFlow::Retry
158-
}
159-
};
160+
};
160161

161162
match inbound_result {
162163
ControlFlow::Retry => {

0 commit comments

Comments
 (0)