- Fixed bug
This commit is contained in:
Tim Beatham 2024-01-02 20:11:11 +00:00
parent ce829114b1
commit 913de57568
2 changed files with 3 additions and 3 deletions

BIN
api Executable file

Binary file not shown.

View File

@ -104,14 +104,14 @@ func (s *SyncerImpl) Sync(correspondingMesh mesh.MeshProvider) error {
// Do this synchronously to conserve bandwidth
for _, node := range gossipNodes {
correspondingPeer := s.manager.GetNode(correspondingMesh.GetMeshId(), node)
correspondingPeer, err := correspondingMesh.GetNode(node)
if correspondingPeer == nil {
if correspondingPeer == nil || err == nil {
logging.Log.WriteErrorf("node %s does not exist", node)
continue
}
err := s.requester.SyncMesh(correspondingMesh.GetMeshId(), correspondingPeer)
err = s.requester.SyncMesh(correspondingMesh.GetMeshId(), correspondingPeer)
if err == nil || err == io.EOF {
succeeded = true