Add queue types (#7504)
This commit is contained in:
parent
164959a0c5
commit
591a5c277c
18 changed files with 97 additions and 50 deletions
|
|
@ -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);
|
||||
|
||||
// ブロックしてたら中断
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue