File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,23 @@ pub fn reducer(
3434 }
3535 dispatcher. push ( P2pEffectfulAction :: Initialize ) ;
3636 }
37- action => match & mut state. p2p {
37+ p2p_action => match & mut state. p2p {
3838 P2p :: Pending ( _) => {
39- error ! ( meta. time( ) ; summary = "p2p is not initialized" , action = debug( action ) )
39+ error ! ( meta. time( ) ; summary = "p2p is not initialized" , action = debug( p2p_action ) )
4040 }
4141 P2p :: Ready ( _) => {
4242 let time = meta. time ( ) ;
4343 let result = p2p:: P2pState :: reducer (
4444 Substate :: new ( state, dispatcher) ,
45- meta. with_action ( action . clone ( ) ) ,
45+ meta. with_action ( p2p_action . clone ( ) ) ,
4646 ) ;
4747
4848 if let Err ( error) = result {
49- error ! ( time; error = display( error) ) ;
49+ use crate :: ActionKindGet as _;
50+ error ! ( time;
51+ summary = "Failure when handling a P2P action" ,
52+ action_kind = format!( "{}" , p2p_action. kind( ) ) ,
53+ error = display( error) ) ;
5054 }
5155 }
5256 } ,
You can’t perform that action at this time.
0 commit comments