X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fhttpgetter.go;h=7de6b966a17b0d6e47fb0ba5e123accf8fbfa003;hb=2c131acf0418c45d9045a6a81baf3e7d047fcb38;hp=be2577c757fab293f65c4221edd71ad84bcb18fa;hpb=cb93dbf2fac19dd49332847327b364be27d8bb71;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/httpgetter.go b/pkg/nbi/httpgetter.go index be2577c..7de6b96 100644 --- a/pkg/nbi/httpgetter.go +++ b/pkg/nbi/httpgetter.go @@ -37,8 +37,8 @@ import ( "routing-manager/pkg/rpe" "routing-manager/pkg/rtmgr" "routing-manager/pkg/sdl" - "time" "sync" + "time" ) type HttpGetter struct { @@ -52,7 +52,7 @@ func NewHttpGetter() *HttpGetter { return instance } -var myClient = &http.Client{Timeout: 5 * time.Second} +var myClient = &http.Client{Timeout: 15 * time.Second} func fetchAllXApps(xmurl string) (*[]rtmgr.XApp, error) { xapp.Logger.Info("Invoked httpGetter.fetchXappList: " + xmurl) @@ -78,7 +78,7 @@ func fetchAllXApps(xmurl string) (*[]rtmgr.XApp, error) { } func (g *HttpGetter) Initialize(xmurl string, nbiif string, fileName string, configfile string, e2murl string, - sdlEngine sdl.Engine, rpeEngine rpe.Engine, triggerSBI chan<- bool, m *sync.Mutex) error { + sdlEngine sdl.Engine, rpeEngine rpe.Engine, m *sync.Mutex) error { return nil }