diff --git a/api/service/syncing/syncing.go b/api/service/syncing/syncing.go index bf6cd27e0..3fca87d9e 100644 --- a/api/service/syncing/syncing.go +++ b/api/service/syncing/syncing.go @@ -134,6 +134,7 @@ func (sc *SyncConfig) RemovePeer(peer *SyncPeerConfig) { for i, p := range sc.peers { if p == peer { sc.peers = append(sc.peers[:i], sc.peers[i+1:]...) + break } } utils.Logger().Info().Str("peerIP", peer.ip).Str("peerPortMsg", peer.port).