X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fhttpgetter.go;h=7de6b966a17b0d6e47fb0ba5e123accf8fbfa003;hb=6a9ce4976c1fbbcb8d4a068f81e76515c99a9d3f;hp=5d7b81884a5e7cc18acdb42a36a3e988beef63b4;hpb=e110ee0d197cd7d61faf4ad761ebad3bf0c68121;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/httpgetter.go b/pkg/nbi/httpgetter.go index 5d7b818..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) @@ -77,8 +77,8 @@ func fetchAllXApps(xmurl string) (*[]rtmgr.XApp, error) { return nil, nil } -func (g *HttpGetter) Initialize(xmurl string, nbiif string, fileName string, configfile string, - sdlEngine sdl.Engine, rpeEngine rpe.Engine, triggerSBI chan<- bool, m *sync.Mutex) error { +func (g *HttpGetter) Initialize(xmurl string, nbiif string, fileName string, configfile string, e2murl string, + sdlEngine sdl.Engine, rpeEngine rpe.Engine, m *sync.Mutex) error { return nil }