@@ -2459,19 +2459,19 @@ impl Relayer {
24592459 // forward if not stale
24602460 if chunk. rc_consensus_hash != * rc_consensus_hash {
24612461 debug ! ( "Drop stale uploaded StackerDB chunk" ;
2462- "stackerdb_contract_id" => & format! ( "{}" , & chunk. contract_id) ,
2462+ "stackerdb_contract_id" => % chunk. contract_id,
24632463 "slot_id" => chunk. chunk_data. slot_id,
24642464 "slot_version" => chunk. chunk_data. slot_version,
24652465 "chunk.rc_consensus_hash" => %chunk. rc_consensus_hash,
24662466 "network.rc_consensus_hash" => %rc_consensus_hash) ;
24672467 continue ;
24682468 }
24692469
2470- debug ! ( "Got uploaded StackerDB chunk" ; "stackerdb_contract_id" => & format! ( "{}" , & chunk. contract_id) , "slot_id" => chunk. chunk_data. slot_id, "slot_version" => chunk. chunk_data. slot_version) ;
2470+ debug ! ( "Got uploaded StackerDB chunk" ; "stackerdb_contract_id" => % chunk. contract_id, "slot_id" => chunk. chunk_data. slot_id, "slot_version" => chunk. chunk_data. slot_version) ;
24712471
24722472 let msg = StacksMessageType :: StackerDBPushChunk ( chunk) ;
24732473 if let Err ( e) = self . p2p . broadcast_message ( vec ! [ ] , msg) {
2474- warn ! ( "Failed to broadcast Nakamoto blocks: {:?}" , & e ) ;
2474+ warn ! ( "Failed to broadcast Nakamoto blocks: {e :?}" ) ;
24752475 }
24762476 }
24772477 for ( contract_id, new_chunks) in all_events. into_iter ( ) {
@@ -2516,7 +2516,7 @@ impl Relayer {
25162516 // to distinguish it from other message types.
25172517 debug ! (
25182518 "Dropping stale StackerDB chunk" ;
2519- "stackerdb_contract_id" => & format! ( "{}" , & sync_result. contract_id) ,
2519+ "stackerdb_contract_id" => % sync_result. contract_id,
25202520 "slot_id" => md. slot_id,
25212521 "slot_version" => md. slot_version,
25222522 "num_bytes" => chunk. data. len( ) ,
@@ -2525,7 +2525,7 @@ impl Relayer {
25252525 } else {
25262526 warn ! (
25272527 "Failed to store chunk for StackerDB" ;
2528- "stackerdb_contract_id" => & format! ( "{}" , & sync_result. contract_id) ,
2528+ "stackerdb_contract_id" => % sync_result. contract_id,
25292529 "slot_id" => md. slot_id,
25302530 "slot_version" => md. slot_version,
25312531 "num_bytes" => chunk. data. len( ) ,
@@ -2534,7 +2534,7 @@ impl Relayer {
25342534 }
25352535 continue ;
25362536 } else {
2537- debug ! ( "Stored chunk" ; "stackerdb_contract_id" => & format! ( "{}" , & sync_result. contract_id) , "slot_id" => md. slot_id, "slot_version" => md. slot_version) ;
2537+ debug ! ( "Stored chunk" ; "stackerdb_contract_id" => % sync_result. contract_id, "slot_id" => md. slot_id, "slot_version" => md. slot_version) ;
25382538 }
25392539
25402540 if let Some ( event_list) = all_events. get_mut ( & sync_result. contract_id ) {
@@ -2548,13 +2548,13 @@ impl Relayer {
25482548 chunk_data : chunk,
25492549 } ) ;
25502550 if let Err ( e) = self . p2p . broadcast_message ( vec ! [ ] , msg) {
2551- warn ! ( "Failed to broadcast StackerDB chunk: {:?}" , & e ) ;
2551+ warn ! ( "Failed to broadcast StackerDB chunk: {e :?}" ) ;
25522552 }
25532553 }
25542554 }
25552555 tx. commit ( ) ?;
25562556 } else {
2557- info ! ( "Got chunks for unconfigured StackerDB replica" ; "stackerdb_contract_id" => & format! ( "{}" , & sc ) ) ;
2557+ debug ! ( "Got chunks for unconfigured StackerDB replica" ; "stackerdb_contract_id" => %sc ) ;
25582558 }
25592559 }
25602560
@@ -2579,7 +2579,7 @@ impl Relayer {
25792579 let sync_results = stackerdb_chunks
25802580 . into_iter ( )
25812581 . map ( |chunk_data| {
2582- debug ! ( "Received pushed StackerDB chunk {:?}" , & chunk_data ) ;
2582+ debug ! ( "Received pushed StackerDB chunk {chunk_data :?}" ) ;
25832583 let sync_result = StackerDBSyncResult :: from_pushed_chunk ( chunk_data) ;
25842584 sync_result
25852585 } )
0 commit comments