fix SetDefault

This commit is contained in:
AI Engineer 2026-05-07 21:11:53 +08:00
parent b03c5bc891
commit 92a4e676ba

View File

@ -36,7 +36,7 @@ func (rd *RedisObj) GetRedis(vm *goja.Runtime, connUrl string) *Redis {
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
defaultConn.pool = redis.GetRedis(connUrl, gojs.GetLogger(vm))
}