diff --git a/redis.go b/redis.go index dbbd91d..6267d2b 100644 --- a/redis.go +++ b/redis.go @@ -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)) }