fix: dont shadow err

This commit is contained in:
Derrick Hammer 2024-01-30 17:09:05 -05:00
parent 5350eda27e
commit 881e19d569
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ func (p *P2PServiceDefault) OnNewPeerListen(peer net.Peer, verifyId bool) {
}
// Directly decode and handle the specific message type
if err := handler.HandleMessage(data); err != nil {
if err = handler.HandleMessage(data); err != nil {
p.Logger().Error("Error handling message", zap.Error(err))
return err
}