diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-01 20:56:03 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-01 20:56:03 +0200 |
| commit | 9a3929c7f0f8aa3090ecfcd1cc017af7d7f4d078 (patch) | |
| tree | fef5c0bc0585b86e8256a1ba764a1f3e809ed044 | |
| parent | bdee55b8fa92bc0e292eac643107cfebc0f4d272 (diff) | |
| download | bridge-9a3929c7f0f8aa3090ecfcd1cc017af7d7f4d078.tar.gz bridge-9a3929c7f0f8aa3090ecfcd1cc017af7d7f4d078.zip | |
fix analyze match orderrelease/2.5.0
| -rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -377,7 +377,7 @@ async function analyzePlayer(api_id) { }); logger.info("sending matches to analyzer", { length: participations.length }); - await Promise.map(participations, async (p) => + await Promise.each(participations, async (p) => await ch.sendToQueue(ANALYZE_QUEUE, new Buffer(p.match_api_id), { persistent: true })); } @@ -446,7 +446,7 @@ async function analyzeGlobal() { offset: offset, order: [ ["created_at", "ASC"] ] }); - await Promise.map(matches, async (m) => + await Promise.each(matches, async (m) => await ch.sendToQueue(ANALYZE_QUEUE, new Buffer(m.api_id), { persistent: true })); offset += SHOVEL_SIZE; |
