mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-23 12:33:38 +00:00
Add queue types (#7504)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user