|
@@ -16,7 +16,7 @@ type StandaloneRedisClient struct {
|
|
|
redisClient *redis.Client
|
|
|
}
|
|
|
|
|
|
-func InitStandaloneRedis(config string) (standaloneRedis StandaloneRedisClient, err error) {
|
|
|
+func InitStandaloneRedis(config string) (standaloneRedis *StandaloneRedisClient, err error) {
|
|
|
var cf map[string]string
|
|
|
err = json.Unmarshal([]byte(config), &cf)
|
|
|
if err != nil {
|
|
@@ -59,7 +59,7 @@ func InitStandaloneRedis(config string) (standaloneRedis StandaloneRedisClient,
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- standaloneRedis = StandaloneRedisClient{redisClient: client}
|
|
|
+ standaloneRedis = &StandaloneRedisClient{redisClient: client}
|
|
|
|
|
|
return
|
|
|
}
|