- if ep.IsReady {
- go c.send(ep, policies)
- } else {
- rtmgr.Logger.Warn("Endpoint " + ep.Uuid + " is not ready")
+ i := 1
+ for i < 5 {
+ if ep.IsReady {
+ go c.send(ep, policies)
+ break
+ } else {
+ xapp.Logger.Warn("Endpoint " + ep.Uuid + " is not ready" + " Retry count " + strconv.Itoa(i))
+ time.Sleep(10 * time.Millisecond)
+ i++
+ }