Browse Source

refactor(queue): remove lambda when adding to pqueue

pull/11/head
Barrie Treloar 2 years ago
committed by Nicolas Petton
parent
commit
3d918be5e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server/helpers/queue.js

+ 1
- 1
server/helpers/queue.js View File

@ -20,7 +20,7 @@ const queued = f => (q => () => q(f))(queue());
const queue = () => {
const pqueue = new PQueue({concurrency: 1});
return f => pqueue.add(() => f());
return f => pqueue.add(f);
};
module.exports = { queued, queue };

Loading…
Cancel
Save