From bde20a1a651fca49cd2fe1806cba758602d7626c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Tue, 14 Aug 2018 08:21:25 +0900 Subject: Use deque instead of linked list --- src/daemons/notes-stats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemons/notes-stats.ts') diff --git a/src/daemons/notes-stats.ts b/src/daemons/notes-stats.ts index 3bc0269dde..1de7a98523 100644 --- a/src/daemons/notes-stats.ts +++ b/src/daemons/notes-stats.ts @@ -1,11 +1,11 @@ import * as childProcess from 'child_process'; +import * as Deque from 'double-ended-queue'; import Xev from 'xev'; -import Queue from '../misc/queue'; const ev = new Xev(); export default function() { - const log = new Queue(); + const log = new Deque(); const p = childProcess.fork(__dirname + '/notes-stats-child.js'); -- cgit v1.2.3-freya