use standalone mode when RedisType is blank

This commit is contained in:
Ulric Qin 2022-05-30 08:39:35 +08:00
parent 7f92e921b4
commit c3adcc877a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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,