From 13980d90b150350a0f0ab66da68fc0bcd46b2820 Mon Sep 17 00:00:00 2001 From: dmgnr Date: Wed, 30 Sep 2026 18:22:53 +0700 Subject: [PATCH] fix(redis): wrap reco in fn --- lib/db/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/redis.ts b/lib/db/redis.ts index 13bface..f46152c 100755 --- a/lib/db/redis.ts +++ b/lib/db/redis.ts @@ -6,7 +6,7 @@ export const redis = ? new Bun.RedisClient(undefined, { maxRetries: 0xffffffff }) : null; -if (redis) redis.onclose = () => setTimeout(redis.connect, 5000); +if (redis) redis.onclose = () => setTimeout(() => redis.connect(), 5000); type PubPayload = { event?: string; data: unknown };