diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 12:55:25 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 12:55:25 +0200 |
| commit | 91babc4b5b127a95139adcf5441878d4eea944ba (patch) | |
| tree | 22cfaea430c6869761e59ca512f4a1c50f140687 /worker.js | |
| parent | 3fdae6efb4ae0166151bfb2e137d0d2be67faa62 (diff) | |
| download | cruncher-91babc4b5b127a95139adcf5441878d4eea944ba.tar.gz cruncher-91babc4b5b127a95139adcf5441878d4eea944ba.zip | |
send only one notification per player
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -181,7 +181,7 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI, await Promise.all(msgs.map((m) => ch.nack(m, true)) ); // requeue } - await Promise.all(player_records.map(async (p) => + await Promise.all(players_done.map(async (p) => await ch.publish("amq.topic", "player." + p.name, new Buffer("points_update")) )); if (global_records.length > 0) await ch.publish("amq.topic", "global", new Buffer("points_update")); |
