diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-05-08 18:56:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 18:56:21 +0900 |
| commit | 591a5c277cdf197f043e5b24743dbdb346e65c4f (patch) | |
| tree | b84126eec671a7a1f1172b472cd9143060357f00 /src/queue/initialize.ts | |
| parent | Create get-index-stats.ts (diff) | |
| download | sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.tar.gz sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.tar.bz2 sharkey-591a5c277cdf197f043e5b24743dbdb346e65c4f.zip | |
Add queue types (#7504)
Diffstat (limited to 'src/queue/initialize.ts')
| -rw-r--r-- | src/queue/initialize.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/queue/initialize.ts b/src/queue/initialize.ts index 941fe4bc33..4c0e5f9d87 100644 --- a/src/queue/initialize.ts +++ b/src/queue/initialize.ts @@ -1,8 +1,8 @@ -import * as Queue from 'bull'; +import * as Bull from 'bull'; import config from '@/config'; -export function initialize(name: string, limitPerSec = -1) { - return new Queue(name, { +export function initialize<T>(name: string, limitPerSec = -1) { + return new Bull<T>(name, { redis: { port: config.redis.port, host: config.redis.host, |