Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add interface to read metrics
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
db.go
diff --git
a/pkg/xapp/db.go
b/pkg/xapp/db.go
index
a7302cd
..
e422cfd
100755
(executable)
--- a/
pkg/xapp/db.go
+++ b/
pkg/xapp/db.go
@@
-73,6
+73,9
@@
type RNIBClient struct {
// NewSDLClient returns a new SDLClient.
func NewSDLClient(ns string) *SDLClient {
// NewSDLClient returns a new SDLClient.
func NewSDLClient(ns string) *SDLClient {
+ if ns == "" {
+ ns = "sdl"
+ }
return &SDLClient{
db: sdl.NewSdlInstance(ns, sdl.NewDatabase()),
stat: Metric.RegisterCounterGroup(SDLCounterOpts, "SDL"),
return &SDLClient{
db: sdl.NewSdlInstance(ns, sdl.NewDatabase()),
stat: Metric.RegisterCounterGroup(SDLCounterOpts, "SDL"),