From 92a4e676ba971daa2df9d7a9b91b9f271996b3ac Mon Sep 17 00:00:00 2001 From: AI Engineer Date: Thu, 7 May 2026 21:11:53 +0800 Subject: [PATCH] fix SetDefault --- redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }