X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fcontrol.go;h=bd1bf4bd6af54112cbb5739e45a11c4760679995;hb=069353a1a5ce5c140612573976efa2600e7e0c37;hp=98d7821dd0412062fa309ae78d4734fa5a483eb3;hpb=2bff80d0fa41b3e2b89b9fb32431558a9cb35170;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/control.go b/pkg/nbi/control.go index 98d7821..bd1bf4b 100644 --- a/pkg/nbi/control.go +++ b/pkg/nbi/control.go @@ -244,9 +244,11 @@ func Serve() { go updateEp() time.Sleep(5 * time.Second) sendRoutesToAll() - /* Sometimes first message fails, retry after 5 sec */ - time.Sleep(5 * time.Second) - sendRoutesToAll() + for i := 0; i <= 5; i++ { + /* Sometimes first message fails, retry after 5 sec */ + time.Sleep(10 * time.Second) + sendRoutesToAll() + } for { xapp.Logger.Debug("Periodic Routes value = %s", xapp.Config.GetString("periodicroutes"))