Finished upgrading the Redis driver

This commit is contained in:
Trial97
2020-08-03 11:12:43 +03:00
committed by Dan Christian Bogos
parent 858bd61b81
commit cfebb0d616
12 changed files with 638 additions and 2404 deletions

View File

@@ -46,7 +46,7 @@ func NewDataDBConn(dbType, host, port, name, user,
if port != "" && strings.Index(host, ":") == -1 {
host += ":" + port
}
d, err = NewRedisStorage(host, dbNo, pass, marshaler, utils.REDIS_MAX_CONNS, sentinelName)
d, err = NewRedisStorage(host, dbNo, user, pass, marshaler, utils.REDIS_MAX_CONNS, sentinelName)
case utils.MONGO:
d, err = NewMongoStorage(host, port, name, user, pass, marshaler, utils.DataDB, nil, true)
case utils.INTERNAL: