@@ -420,40 +420,48 @@ pub fn logger_effects<S: Service>(store: &Store<S>, action: ActionWithMetaRef<'_
420420 _ => { }
421421 } ,
422422 P2pChannelsAction :: Rpc ( action) => match action {
423- P2pChannelsRpcAction :: Init ( action ) => {
423+ P2pChannelsRpcAction :: Init { peer_id } => {
424424 openmina_core:: log:: debug!(
425425 meta. time( ) ;
426426 kind = kind. to_string( ) ,
427- summary = format!( "peer_id: {}" , action . peer_id ) ,
428- peer_id = action . peer_id. to_string( )
427+ summary = format!( "peer_id: {peer_id }" , ) ,
428+ peer_id = peer_id. to_string( )
429429 ) ;
430430 }
431- P2pChannelsRpcAction :: Ready ( action ) => {
431+ P2pChannelsRpcAction :: Ready { peer_id } => {
432432 openmina_core:: log:: debug!(
433433 meta. time( ) ;
434434 kind = kind. to_string( ) ,
435- summary = format!( "peer_id: {}" , action . peer_id ) ,
436- peer_id = action . peer_id. to_string( )
435+ summary = format!( "peer_id: {peer_id }" , ) ,
436+ peer_id = peer_id. to_string( )
437437 ) ;
438438 }
439- P2pChannelsRpcAction :: RequestSend ( action) => {
439+ P2pChannelsRpcAction :: RequestSend {
440+ peer_id,
441+ id,
442+ request,
443+ } => {
440444 openmina_core:: log:: debug!(
441445 meta. time( ) ;
442446 kind = kind. to_string( ) ,
443- summary = format!( "peer_id: {}, rpc_id: {}, kind: {:?}" , action . peer_id , action . id , action . request. kind( ) ) ,
444- peer_id = action . peer_id. to_string( ) ,
445- rpc_id = action . id. to_string( ) ,
446- trace_request = serde_json:: to_string( & action . request) . ok( )
447+ summary = format!( "peer_id: {peer_id }, rpc_id: {id }, kind: {:?}" , request. kind( ) ) ,
448+ peer_id = peer_id. to_string( ) ,
449+ rpc_id = id. to_string( ) ,
450+ trace_request = serde_json:: to_string( request) . ok( )
447451 ) ;
448452 }
449- P2pChannelsRpcAction :: ResponseReceived ( action) => {
453+ P2pChannelsRpcAction :: ResponseReceived {
454+ peer_id,
455+ id,
456+ response,
457+ } => {
450458 openmina_core:: log:: debug!(
451459 meta. time( ) ;
452460 kind = kind. to_string( ) ,
453- summary = format!( "peer_id: {}, rpc_id: {}" , action . peer_id , action . id ) ,
454- peer_id = action . peer_id. to_string( ) ,
455- rpc_id = action . id. to_string( ) ,
456- trace_response = serde_json:: to_string( & action . response) . ok( )
461+ summary = format!( "peer_id: {peer_id }, rpc_id: {id}" ) ,
462+ peer_id = peer_id. to_string( ) ,
463+ rpc_id = id. to_string( ) ,
464+ trace_response = serde_json:: to_string( response) . ok( )
457465 ) ;
458466 }
459467 _ => { }
0 commit comments