Skip to content

Commit

Permalink
fix:get configcache return nil need exit (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinguoyi authored Aug 12, 2024
1 parent bfea83a commit a4867c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion center/sso/init.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sso

import (
"fmt"
"log"
"time"

Expand Down Expand Up @@ -145,7 +146,7 @@ func Init(center cconf.Center, ctx *ctx.Context, configCache *memsto.ConfigCache
}
}
if configCache == nil {
logger.Error("configCache is nil, sso initialization failed")
log.Fatalln(fmt.Errorf("configCache is nil, sso initialization failed"))
}
ssoClient.configCache = configCache
userVariableMap := configCache.Get()
Expand Down

0 comments on commit a4867c4

Please sign in to comment.