Commit 4a86a3a9 authored by M. Rehan Abbasi's avatar M. Rehan Abbasi
Browse files

rename Cfg in SBI for meep-vis

parent ca4f33ad
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import (
	sam "github.com/InterDigitalInc/AdvantEDGE/go-packages/meep-swagger-api-mgr"
)

const moduleName string = "meep-wais-sbi"
const moduleName string = "meep-vis-sbi"

var metricStore *met.MetricStore
var redisAddr string = "meep-redis-master.default.svc.cluster.local:6379"
@@ -50,7 +50,7 @@ type SbiCfg struct {
	CleanUpCb      func()
}

type WaisSbi struct {
type VisSbi struct {
	moduleName      string
	sandboxName     string
	mepName         string
@@ -70,16 +70,16 @@ type WaisSbi struct {
	mutex                sync.Mutex
}

var sbi *WaisSbi
var sbi *VisSbi

// Init - WAI Service SBI initialization
// Init - V2XI Service SBI initialization
func Init(cfg SbiCfg) (err error) {

	// Create new SBI instance
	if sbi != nil {
		sbi = nil
	}
	sbi = new(WaisSbi)
	sbi = new(VisSbi)
	sbi.moduleName = cfg.ModuleName
	sbi.sandboxName = cfg.SandboxName
	sbi.mepName = cfg.MepName
@@ -146,7 +146,7 @@ func Init(cfg SbiCfg) (err error) {
	return nil
}

// Run - MEEP WAIS execution
// Run - MEEP VIS execution
func Run() (err error) {

	// Start Swagger API Manager (provider)