1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Migrate to bull

This commit is contained in:
Chocobozzz 2018-07-10 17:02:20 +02:00
parent 2cdf27bae6
commit 94831479f5
21 changed files with 221 additions and 163 deletions

View file

@ -1,4 +1,4 @@
import * as kue from 'kue'
import * as Bull from 'bull'
import * as Bluebird from 'bluebird'
import { logger } from '../../../helpers/logger'
import { doRequest } from '../../../helpers/requests'
@ -12,7 +12,7 @@ export type ActivitypubHttpBroadcastPayload = {
body: any
}
async function processActivityPubHttpBroadcast (job: kue.Job) {
async function processActivityPubHttpBroadcast (job: Bull.Job) {
logger.info('Processing ActivityPub broadcast in job %d.', job.id)
const payload = job.data as ActivitypubHttpBroadcastPayload