Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit ffd5d16

Browse files
TimeraaBas950
andcommitted
chore: redis cluster
Co-authored-by: Bas van Zanten <me@bas950.com>
1 parent 6197528 commit ffd5d16

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

apps/worker/src/index.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ export const mongodb = new MongoClient(process.env.MONGO_URL!, {
4444
appName: "PreMiD-API-Worker"
4545
}),
4646
redis = createCluster({
47-
rootNodes:
48-
process.env.REDIS_URL?.split(",")?.map(url => ({
49-
url
50-
})) || [
51-
{
52-
url: "redis://localhost:6379"
53-
}
54-
],
47+
rootNodes: process.env.REDIS_URL?.split(",")?.map(url => ({
48+
url
49+
})) || [
50+
{
51+
url: "redis://localhost:6379"
52+
}
53+
],
5554
useReplicas: false
5655
}),
5756
baseRedisCache = new BaseRedisCache({
@@ -172,6 +171,3 @@ async function run() {
172171
}
173172

174173
run();
175-
176-
177-
.pnpm/@redis+client@1.5.13/node_modules/@redis/client/dist/lib/cluster/cluster-slots.js:108

0 commit comments

Comments
 (0)