mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-23 04:55:05 -04:00
wip
This commit is contained in:
parent
3c5eaa2c4b
commit
4595085d61
58 changed files with 17604 additions and 1070 deletions
8
src/queue/worker.ts
Normal file
8
src/queue/worker.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { redis } from '../modules';
|
||||
import { Worker } from 'bullmq';
|
||||
|
||||
const connection = redis.getClient();
|
||||
|
||||
const worker = new Worker('proof', async (job) => {
|
||||
// do some processing
|
||||
}, { connection });
|
Loading…
Add table
Add a link
Reference in a new issue