Skip to content

Commit

Permalink
Merge pull request #170 from retail-ai-inc/fix/remove-panic-in-redis-…
Browse files Browse the repository at this point in the history
…master-initialization

Remove Panic in Initialization for Master Redis Cache
  • Loading branch information
SunJinping-TRE-C committed Jan 26, 2024
2 parents 309751b + eadbec4 commit 78c0b59
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions store/redis/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ type masterCache struct {
// This assumes it is called after the (*Bean).InitDB() func and takes (bean.DBDeps).MasterRedisDB as input.
func NewMasterCache(master *dbdrivers.RedisDBConn, prefix string) MasterCache {

if master == nil {
panic("master redis db is not initialized properly")
}

return &masterCache{
cache: &tenantCache{
clients: map[uint64]*dbdrivers.RedisDBConn{
Expand Down

0 comments on commit 78c0b59

Please sign in to comment.