Resetting E2Term connection flag after connection succes
[ric-plt/rtmgr.git] / pkg / nbi / httpgetter.go
index be2577c..7de6b96 100644 (file)
@@ -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
 }