Code Review
/
ric-plt
/
rtmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
G release step 2 of 2
[ric-plt/rtmgr.git]
/
pkg
/
nbi
/
control.go
diff --git
a/pkg/nbi/control.go
b/pkg/nbi/control.go
index
98d7821
..
bd1bf4b
100644
(file)
--- a/
pkg/nbi/control.go
+++ b/
pkg/nbi/control.go
@@
-244,9
+244,11
@@
func Serve() {
go updateEp()
time.Sleep(5 * time.Second)
sendRoutesToAll()
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"))
for {
xapp.Logger.Debug("Periodic Routes value = %s", xapp.Config.GetString("periodicroutes"))