diff --git a/pkg/sync/syncer.go b/pkg/sync/syncer.go index 65c26f5..472dfb7 100644 --- a/pkg/sync/syncer.go +++ b/pkg/sync/syncer.go @@ -106,7 +106,7 @@ func (s *SyncerImpl) Sync(correspondingMesh mesh.MeshProvider) error { for _, node := range gossipNodes { correspondingPeer, err := correspondingMesh.GetNode(node) - if correspondingPeer == nil || err == nil { + if correspondingPeer == nil || err != nil { logging.Log.WriteErrorf("node %s does not exist", node) continue }