Skip to content

Commit

Permalink
Merge pull request #1817 from mintlayer/fix/clippy_1_81
Browse files Browse the repository at this point in the history
Fix clippy 1.81
  • Loading branch information
azarovh authored Sep 20, 2024
2 parents 6e4af35 + ffe069f commit b5d6d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mempool/src/pool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,9 @@ impl<'a> TxFinalizer<'a> {
let origin = transaction.origin();
log::trace!("Rejected transaction {tx_id}, checking orphan status");

self.try_add_orphan(tx_pool, transaction, error).map_err(|err| {
self.try_add_orphan(tx_pool, transaction, error).inspect_err(|err| {
let evt = event::TransactionProcessed::rejected(tx_id, err.clone(), origin);
self.events_controller.broadcast(evt.into());
err
})
}
}
Expand Down
4 changes: 2 additions & 2 deletions rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ impl Rpc {
.set_http_middleware(middleware.clone())
.build(http_bind_addr)
.await
.map_err(|e| {
logging::log::error!("\n\nError: Failed to bind RPC to address {http_bind_addr}; the port is probably reserved by another application. Assuming the node is not already running, either pick another port (bind address) or disable RPC.\n"); e
.inspect_err(|_| {
logging::log::error!("\n\nError: Failed to bind RPC to address {http_bind_addr}; the port is probably reserved by another application. Assuming the node is not already running, either pick another port (bind address) or disable RPC.\n");
})?;
let http_address = http_server.local_addr()?;
let http_handle = http_server.start(methods.clone());
Expand Down

0 comments on commit b5d6d58

Please sign in to comment.