Skip to content

Commit ed532a1

Browse files
committed
cleanup
1 parent 8951b43 commit ed532a1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/tasks/submit/flashbots.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,20 @@ impl FlashbotsTask {
155155
}
156156
.await;
157157

158-
let Ok(resp) = &response else {
159-
counter!("signet.builder.flashbots.submission_failures").increment(1);
160-
if let Err(err) = &response {
158+
match response {
159+
Ok(resp) => {
160+
counter!("signet.builder.flashbots.bundles_submitted").increment(1);
161+
span_debug!(
162+
submit_span,
163+
hash = resp.map(|r| r.bundle_hash.to_string()),
164+
"received bundle hash after submitted to flashbots"
165+
);
166+
}
167+
Err(err) => {
168+
counter!("signet.builder.flashbots.submission_failures").increment(1);
161169
span_error!(submit_span, %err, "MEV bundle submission failed - error returned");
162170
}
163-
continue;
164-
};
165-
166-
counter!("signet.builder.flashbots.bundles_submitted").increment(1);
167-
span_debug!(
168-
submit_span,
169-
hash = resp.as_ref().map(|r| r.bundle_hash.to_string()),
170-
"received bundle hash after submitted to flashbots"
171-
);
171+
}
172172
}
173173
}
174174

0 commit comments

Comments
 (0)