mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-01-20 20:48:54 +01:00
main
- error in code invalid check for nil
This commit is contained in:
parent
913de57568
commit
dea6f1a22d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user