th: fix streaming
ci/woodpecker/push/woodpecker Pipeline was successful Details

main-unfiltered
kouhai dev 2023-09-20 22:23:45 -07:00
parent 512f971ede
commit 1e921f9ab9
1 changed files with 3 additions and 1 deletions

View File

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