From 0fff2e4f16e8956321b6a0e54ca8b0fe31ccff07 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 10 Mar 2019 19:20:25 +0900 Subject: [PATCH] Remove debug code --- src/daemons/queue-stats.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/daemons/queue-stats.ts b/src/daemons/queue-stats.ts index 26f2bf7c03..41babb1c88 100644 --- a/src/daemons/queue-stats.ts +++ b/src/daemons/queue-stats.ts @@ -21,14 +21,8 @@ export default function() { const inboxJobCounts = await inboxQueue.getJobCounts(); const stats = { - deliver: { - active: Math.floor(Math.random() * 100), - delayed: Math.floor(Math.random() * 1000), - }, - inbox: { - active: Math.floor(Math.random() * 100), - delayed: Math.floor(Math.random() * 1000), - } + deliver: deliverJobCounts, + inbox: inboxJobCounts }; ev.emit('queueStats', stats);