Removed Book Keeping of RMR CTL ports. Route Distribution only on demand
[ric-plt/rtmgr.git] / pkg / nbi / httpgetter.go
index 5d7b818..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)
@@ -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
 }