Skip to content

Commit

Permalink
p2p(ticdc): fix panic issue when peer is not found (#9355) (#9475)
Browse files Browse the repository at this point in the history
close #9354
  • Loading branch information
ti-chi-bot committed Aug 2, 2023
1 parent e68b679 commit 462cff4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ func (m *MessageServer) deregisterPeerByID(ctx context.Context, peerID string) {
m.peerLock.Unlock()
if !ok {
log.Warn("peer not found", zap.String("peerID", peerID))
return
}
m.deregisterPeer(ctx, peer, nil)
}
Expand Down

0 comments on commit 462cff4

Please sign in to comment.