Skip to content

Commit

Permalink
make zmq logging trace
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Sep 22, 2024
1 parent bd06b79 commit c972022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/threads/zmq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ async fn update_tx_zmq(socket: &SocketAddr, state: Arc<SharedState>) -> Result<(
if let Ok(tx) = bsl::Transaction::parse(tx) {
let txid = tx.parsed().txid_sha2();
let txid = Txid::from_byte_array(txid.into());
log::info!("inserting {}", txid);

let _ = state.txs.lock().await.insert(txid, tx.parsed());
let insert_result = state.txs.lock().await.insert(txid, tx.parsed());
log::trace!("inserting {} {}", txid, insert_result.is_ok());
}
}
}
Expand Down

0 comments on commit c972022

Please sign in to comment.