summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2020-10-02 20:10:22 +0000
committerGerrit Code Review <gerrit@onap.org>2020-10-02 20:10:22 +0000
commitb05bad813b236d627c83688eeef128fe7126dfae (patch)
treeea88879974d6b25d43346e5d127c6def70e98b0f
parent80107dc294c86a452c6108ffca6f281b4dbb9192 (diff)
parent16dbf45f9fe05eab889e4c362f8cdbfbb968ea19 (diff)
Merge "Fix rsync retry logic for unreachable cluster"
-rw-r--r--src/rsync/pkg/context/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rsync/pkg/context/context.go b/src/rsync/pkg/context/context.go
index 35e6c4e2..a2771379 100644
--- a/src/rsync/pkg/context/context.go
+++ b/src/rsync/pkg/context/context.go
@@ -252,7 +252,6 @@ Loop:
break Loop
} else {
logutils.Info("Cluster is not reachable - keep trying::", logutils.Fields{"cluster": cluster})
- go checkReachable()
}
case <-ch:
statusFailed := resourcestatus.ResourceStatus{
@@ -279,6 +278,7 @@ Loop:
}
resStateUpdated = true
}
+ go checkReachable()
break
}
}