Skip to content

Commit 72d2c26

Browse files
prestwichdylanlott
authored andcommitted
nit: error
1 parent 411b6b8 commit 72d2c26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tasks/submit/task.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ impl SubmitTask {
103103
error!("receipts task gone");
104104
}
105105

106-
if let Err(e) = fut.await? {
106+
if let Err(error) = fut.await? {
107107
// Detect and handle transaction underprice errors
108-
if matches!(e, TransportError::ErrorResp(ref err) if err.code == -32603) {
108+
if matches!(error, TransportError::ErrorResp(ref err) if err.code == -32603) {
109109
debug!(tx_hash = ?tx.hash(), "underpriced transaction error - retrying tx with gas bump");
110110
return Ok(ControlFlow::Retry);
111111
}
112112

113113
// Unknown error, log and skip
114-
error!(error = %e, "Primary tx broadcast failed");
114+
error!(%error, "Primary tx broadcast failed");
115115
return Ok(ControlFlow::Skip);
116116
}
117117

0 commit comments

Comments
 (0)