Skip to content

Commit

Permalink
what if we just dont exit lmfao
Browse files Browse the repository at this point in the history
  • Loading branch information
Looskie committed Mar 19, 2024
1 parent a19a330 commit 90f1710
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/api/src/utils/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 90f1710

Please sign in to comment.