Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrembal committed Feb 26, 2025
1 parent 179565d commit a2e3147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/src/database/tx_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl Database {
.bind(TxidDB(txid));

let id: i32 = execute_query_with_tx!(self.connection, tx, query, fetch_one)?;
u32::try_from(id).map_err(|e| BridgeError::IntConversionError(e))
u32::try_from(id).map_err(BridgeError::IntConversionError)
}

pub async fn save_rbf_txid(
Expand Down Expand Up @@ -528,7 +528,7 @@ impl Database {
result.2,
result
.3
.map(|id| u32::try_from(id).map_err(|e| BridgeError::IntConversionError(e)))
.map(|id| u32::try_from(id).map_err(BridgeError::IntConversionError))
.transpose()?,
))
}
Expand Down
6 changes: 2 additions & 4 deletions core/src/tx_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl TxSender {
)
.await
}
TransactionType::WatchtowerChallengeTimeout(watchtower_idx) => {
TransactionType::WatchtowerChallengeTimeout(_watchtower_idx) => {
let kickoff_txid = related_txs
.iter()
.find_map(|(tx_type, tx)| {
Expand Down Expand Up @@ -787,9 +787,7 @@ impl TxSender {
let mut early_exit = false;
for (_txid, result) in submit_package_result.tx_results {
if let PackageTransactionResult::Failure { error, .. } = result {
tracing::warn!("Error submitting package: {:?}", error);
// STOP THE WHOLE PROCESS
std::process::exit(0);
tracing::error!("Error submitting package: {:?}", error);
early_exit = true;
break;
}
Expand Down

0 comments on commit a2e3147

Please sign in to comment.