use standalone mode when RedisType is blank
This commit is contained in:
parent
7f92e921b4
commit
c3adcc877a
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
|||
|
||||
NOW = $(shell date -u '+%Y%m%d%I%M%S')
|
||||
|
||||
RELEASE_VERSION = 5.8.1
|
||||
RELEASE_VERSION = 5.9.0
|
||||
|
||||
APP = n9e
|
||||
SERVER_BIN = $(APP)
|
||||
|
|
|
@ -48,7 +48,7 @@ var Redis interface {
|
|||
|
||||
func InitRedis(cfg RedisConfig) (func(), error) {
|
||||
switch cfg.RedisType {
|
||||
case "standalone":
|
||||
case "standalone", "":
|
||||
redisOptions := &redis.Options{
|
||||
Addr: cfg.Address,
|
||||
Username: cfg.Username,
|
||||
|
|
Loading…
Reference in New Issue