Skip to content

Commit

Permalink
gNOI Reboot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndas7 committed Oct 9, 2024
1 parent 5cc436a commit 39bb44a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common_utils/component_state_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ func getRedisDBClient() (*redis.Client, error) {
addr, err := sdcfg.GetDbTcpAddr(dbName, ns)
if err != nil {
log.Errorf("Addr err: %v", err)
return
return nil, err
}
db, err := sdcfg.GetDbId("STATE_DB", ns)
if err != nil {
log.Errorf("DB err: %v", err)
return
return nil, err
}
rclient := redis.NewClient(&redis.Options{
Network: "tcp",
Addr: addr,
Addr: addr,
Password: "", // no password set
DB: db,
DB: db,
DialTimeout: 0,
})
if rclient == nil {
Expand Down

0 comments on commit 39bb44a

Please sign in to comment.