X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp.go;fp=pkg%2Fxapp%2Fxapp.go;h=2f5f4643f6b4217c481ce32946e67144a9ee8430;hb=3fd54d11c9f548f1ebea30133e5198eb49511e55;hp=f778265edee516733e3ef6affa0c93bdac93dda8;hpb=2f9d1a1259f88552a2b6e9db6e1ea236aef7a2d2;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index f778265..2f5f464 100755 --- a/pkg/xapp/xapp.go +++ b/pkg/xapp/xapp.go @@ -23,7 +23,6 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/spf13/viper" "net/http" "os" "os/signal" @@ -31,6 +30,8 @@ import ( "sync/atomic" "syscall" "time" + + "github.com/spf13/viper" ) type ReadyCB func(interface{}) @@ -46,7 +47,6 @@ var ( Logger *Log Config Configurator Subscription *Subscriber - Alarm *AlarmClient Util *Utils readyCb ReadyCB readyCbParams interface{} @@ -65,7 +65,6 @@ func SetReadyCB(cb ReadyCB, params interface{}) { } func XappReadyCb(params interface{}) { - Alarm = NewAlarmClient(viper.GetString("moId"), viper.GetString("name")) if readyCb != nil { readyCb(readyCbParams) }