@@ -577,28 +577,15 @@ where
577577 self . inbound_substreams_delay . remove ( delay_key) ;
578578 }
579579
580- // BlocksByRange is the one that typically consumes the most time.
581- // Its useful to log when the request was completed.
582- if matches ! ( info. protocol, Protocol :: BlocksByRange ) {
583- debug ! (
584- peer_id = %self . peer_id,
585- connection_id = %self . connection_id,
586- duration = Instant :: now( )
587- . duration_since( info. request_start_time)
588- . as_secs( ) ,
589- "BlocksByRange Response sent"
590- ) ;
591- }
592- if matches ! ( info. protocol, Protocol :: BlobsByRange ) {
593- debug ! (
594- peer_id = %self . peer_id,
595- connection_id = %self . connection_id,
596- duration = Instant :: now( )
597- . duration_since( info. request_start_time)
598- . as_secs( ) ,
599- "BlobsByRange Response sent"
600- ) ;
601- }
580+ debug ! (
581+ peer_id = %self . peer_id,
582+ connection_id = %self . connection_id,
583+ duration = Instant :: now( )
584+ . duration_since( info. request_start_time)
585+ . as_secs( ) ,
586+ response = %info. protocol,
587+ "Response sent"
588+ ) ;
602589
603590 // There is nothing more to process on this substream as it has
604591 // been closed. Move on to the next one.
0 commit comments