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

Commit 1c9f0b5

Browse files
committed
fix: connect url
1 parent 9582eba commit 1c9f0b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/master/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Sentry.init({
2525

2626
export const redis = new Redis({
2727
sentinels: process.env.REDIS_SENTINELS?.split(",")?.map(s => ({
28-
host: s.split(":")[0],
28+
host: s,
2929
port: 26379
3030
})),
3131
name: "mymaster",

apps/worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const mongodb = new MongoClient(process.env.MONGO_URL!, {
4545
}),
4646
redis = new Redis({
4747
sentinels: process.env.REDIS_SENTINELS?.split(",")?.map(s => ({
48-
host: s.split(":")[0],
48+
host: s,
4949
port: 26379
5050
})),
5151
name: "mymaster",

0 commit comments

Comments
 (0)