fix SetDefault
This commit is contained in:
parent
b03c5bc891
commit
92a4e676ba
2
redis.go
2
redis.go
@ -36,7 +36,7 @@ func (rd *RedisObj) GetRedis(vm *goja.Runtime, connUrl string) *Redis {
|
|||||||
return &Redis{pool: conn}
|
return &Redis{pool: conn}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rd *RedisObj) SetDefault(connUrl string, thisArg goja.Value, vm *goja.Runtime) {
|
func (rd *RedisObj) SetDefault(connUrl string, vm *goja.Runtime) {
|
||||||
defaultConnName = connUrl
|
defaultConnName = connUrl
|
||||||
defaultConn.pool = redis.GetRedis(connUrl, gojs.GetLogger(vm))
|
defaultConn.pool = redis.GetRedis(connUrl, gojs.GetLogger(vm))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user