@ -1322,9 +1322,11 @@ func (r *Reactor) processStateCh(ctx context.Context) {
case envelope := <- r . stateCh . In :
case envelope := <- r . stateCh . In :
if err := r . handleMessage ( r . stateCh . ID , envelope ) ; err != nil {
if err := r . handleMessage ( r . stateCh . ID , envelope ) ; err != nil {
r . logger . Error ( "failed to process message" , "ch_id" , r . stateCh . ID , "envelope" , envelope , "err" , err )
r . logger . Error ( "failed to process message" , "ch_id" , r . stateCh . ID , "envelope" , envelope , "err" , err )
r . stateCh . Error <- p2p . PeerError {
if serr := r . stateCh . SendError ( ctx , p2p . PeerError {
NodeID : envelope . From ,
NodeID : envelope . From ,
Err : err ,
Err : err ,
} ) ; serr != nil {
return
}
}
}
}
}
}
@ -1345,9 +1347,11 @@ func (r *Reactor) processDataCh(ctx context.Context) {
case envelope := <- r . dataCh . In :
case envelope := <- r . dataCh . In :
if err := r . handleMessage ( r . dataCh . ID , envelope ) ; err != nil {
if err := r . handleMessage ( r . dataCh . ID , envelope ) ; err != nil {
r . logger . Error ( "failed to process message" , "ch_id" , r . dataCh . ID , "envelope" , envelope , "err" , err )
r . logger . Error ( "failed to process message" , "ch_id" , r . dataCh . ID , "envelope" , envelope , "err" , err )
r . dataCh . Error <- p2p . PeerError {
if serr := r . dataCh . SendError ( ctx , p2p . PeerError {
NodeID : envelope . From ,
NodeID : envelope . From ,
Err : err ,
Err : err ,
} ) ; serr != nil {
return
}
}
}
}
}
}
@ -1368,9 +1372,11 @@ func (r *Reactor) processVoteCh(ctx context.Context) {
case envelope := <- r . voteCh . In :
case envelope := <- r . voteCh . In :
if err := r . handleMessage ( r . voteCh . ID , envelope ) ; err != nil {
if err := r . handleMessage ( r . voteCh . ID , envelope ) ; err != nil {
r . logger . Error ( "failed to process message" , "ch_id" , r . voteCh . ID , "envelope" , envelope , "err" , err )
r . logger . Error ( "failed to process message" , "ch_id" , r . voteCh . ID , "envelope" , envelope , "err" , err )
r . voteCh . Error <- p2p . PeerError {
if serr := r . voteCh . SendError ( ctx , p2p . PeerError {
NodeID : envelope . From ,
NodeID : envelope . From ,
Err : err ,
Err : err ,
} ) ; serr != nil {
return
}
}
}
}
}
}
@ -1391,9 +1397,11 @@ func (r *Reactor) processVoteSetBitsCh(ctx context.Context) {
case envelope := <- r . voteSetBitsCh . In :
case envelope := <- r . voteSetBitsCh . In :
if err := r . handleMessage ( r . voteSetBitsCh . ID , envelope ) ; err != nil {
if err := r . handleMessage ( r . voteSetBitsCh . ID , envelope ) ; err != nil {
r . logger . Error ( "failed to process message" , "ch_id" , r . voteSetBitsCh . ID , "envelope" , envelope , "err" , err )
r . logger . Error ( "failed to process message" , "ch_id" , r . voteSetBitsCh . ID , "envelope" , envelope , "err" , err )
r . voteSetBitsCh . Error <- p2p . PeerError {
if serr := r . voteSetBitsCh . SendError ( ctx , p2p . PeerError {
NodeID : envelope . From ,
NodeID : envelope . From ,
Err : err ,
Err : err ,
} ) ; serr != nil {
return
}
}
}
}
}
}