From 90f1710eba82626d4b90e331173c2bbf492c0b63 Mon Sep 17 00:00:00 2001 From: Cody Miller <hello@looskie.com> Date: Tue, 19 Mar 2024 09:41:19 -0400 Subject: [PATCH] what if we just dont exit lmfao --- apps/api/src/utils/redis.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/api/src/utils/redis.ts b/apps/api/src/utils/redis.ts index 886904b8..79e26a55 100644 --- a/apps/api/src/utils/redis.ts +++ b/apps/api/src/utils/redis.ts @@ -16,18 +16,17 @@ class Redis { this.redis = createClient({ url: env.REDIS_URL, }); - + this.redis.on("error", (err) => { Logger.error("INIT", "Failed to connect to redis " + String(err)); - process.exit(1); }); - + this.redis.on("connect", () => { Logger.info("INIT", "Connected to redis"); }); - + await this.redis.connect(); - }, 300) + }, 300); } public static async set(