X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fhttpgetter.go;h=fca8367209621d9f8a13eda3fe33d0bdf5d84b5f;hb=refs%2Fchanges%2F17%2F4117%2F1;hp=5d7b81884a5e7cc18acdb42a36a3e988beef63b4;hpb=e110ee0d197cd7d61faf4ad761ebad3bf0c68121;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/httpgetter.go b/pkg/nbi/httpgetter.go index 5d7b818..fca8367 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,7 +77,7 @@ func fetchAllXApps(xmurl string) (*[]rtmgr.XApp, error) { return nil, nil } -func (g *HttpGetter) Initialize(xmurl string, nbiif string, fileName string, configfile string, +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 { return nil }