- error in code invalid check for nil
This commit is contained in:
Tim Beatham 2024-01-02 20:19:34 +00:00
parent 913de57568
commit dea6f1a22d

View File

@ -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
}