th: fix streaming

th-downstream
Kouhai 1 year ago
parent 150feaf9b7
commit d22e3b86f2

@ -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 !== '') {

Loading…
Cancel
Save