fix panic
This commit is contained in:
1 parent
3461f20510
commit
f3934e038e
4 files changed
+15
-1
No files matched your search
@@ -21,6 +21,10 @@ func (c *redisClient) ReceiveConfiguration(configuration structure.RedisConfigur
|
||||
}
|
||||
|
||||
func (c *redisClient) GetTokens(appToken string) (map[string]string, error) {
|
||||
if c.cli == nil {
|
||||
return nil, errors.New("client undefined")
|
||||
}
|
||||
|
||||
instanceUuid := config.Get().(*conf.Configuration).InstanceUuid
|
||||
key := fmt.Sprintf("%s|%s", appToken, instanceUuid)
|
||||
|
||||
|
||||
Reference in new issue
Block a user