diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-09 23:44:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-09 23:44:54 +0900 |
| commit | 5a0a297634afd46ba254d81b7eb6c98d2df27d04 (patch) | |
| tree | 22de394d2ceff2e1747f6ba7f7392e372f28b992 /src/queue | |
| parent | Fix log (diff) | |
| download | sharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.tar.gz sharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.tar.bz2 sharkey-5a0a297634afd46ba254d81b7eb6c98d2df27d04.zip | |
Improve redis config
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts index eccb38b5e2..83cebe247b 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -16,8 +16,9 @@ function initializeQueue(name: string) { port: config.redis.port, host: config.redis.host, password: config.redis.pass, - db: 1 - } + db: config.redis.db || 0, + }, + prefix: config.redis.prefix ? `${config.redis.prefix}:queue` : 'queue' } : null); } |