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/processors/deliver.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/processors/deliver.ts')
| -rw-r--r-- | src/queue/processors/deliver.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/queue/processors/deliver.ts b/src/queue/processors/deliver.ts index b167154fcd..f9c53fc8f1 100644 --- a/src/queue/processors/deliver.ts +++ b/src/queue/processors/deliver.ts @@ -10,6 +10,7 @@ import { fetchMeta } from '@/misc/fetch-meta'; import { toPuny } from '@/misc/convert-host'; import { Cache } from '@/misc/cache'; import { Instance } from '../../models/entities/instance'; +import { DeliverJobData } from '../types'; const logger = new Logger('deliver'); @@ -17,7 +18,7 @@ let latest: string | null = null; const suspendedHostsCache = new Cache<Instance[]>(1000 * 60 * 60); -export default async (job: Bull.Job) => { +export default async (job: Bull.Job<DeliverJobData>) => { const { host } = new URL(job.data.to); // ブロックしてたら中断 |