Skip to content

Commit eec27df

Browse files
fix ci
1 parent b75069f commit eec27df

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
services:
2323
redis:
24-
image: redis
24+
image: redis:7
2525
options: >-
2626
--health-cmd "redis-cli ping"
2727
--health-interval 10s

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
redis:
3-
image: redis:5
3+
image: redis:7
44
ports:
55
- "6379:6379"
66

lib/util.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ function isRedisV4Client(redisClient: any) {
4242

4343
export async function duplicateClient(redisClient: any) {
4444
const newClient = redisClient.duplicate();
45+
46+
newClient.on("error", (err) => {
47+
// ignore errors
48+
});
49+
4550
if (isRedisV4Client(redisClient)) {
4651
await newClient.connect();
4752
}

0 commit comments

Comments
 (0)