From 1e921f9ab961fe90a8dc5df93f541989e0bba263 Mon Sep 17 00:00:00 2001 From: Kouhai Date: Wed, 20 Sep 2023 22:23:45 -0700 Subject: [PATCH] th: fix streaming --- streaming/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/streaming/index.js b/streaming/index.js index 9e6d69d4eb..3937d0ec01 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -42,7 +42,9 @@ const createRedisClient = async (config) => { // so apparently ioredis doesn't handle relative paths let client; - if (parsed.host === null && parsed.path[0] === '.') { + if (!redisUrl) { + client = new Redis(redisParams); + } else if (parsed.host === null && parsed.path[0] === '.') { redisParams.path = parsed.path; client = new Redis(redisParams); } else if (parsed.host === '.' || parsed.protocol === 'unix:' && parsed.host !== '') {