diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-30 18:08:02 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-30 18:08:02 +0200 |
| commit | 73562169d4b5e49b5a159015b5f7ee3bb39ecb1b (patch) | |
| tree | d21442a12547da86a55f8267f7a9782f879de49a | |
| parent | 86e7ba6711535181ca6b7602c9ddbb2b6d0d9dd7 (diff) | |
| download | processor-73562169d4b5e49b5a159015b5f7ee3bb39ecb1b.tar.gz processor-73562169d4b5e49b5a159015b5f7ee3bb39ecb1b.zip | |
submit one phase_update per message; send to dest according to notif header
| -rw-r--r-- | worker.js | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -803,13 +803,10 @@ function flatten(obj) { if (m.properties.type == "player") notif = "stats_update"; // new phases if (m.properties.type == "telemetry") { - notif = "phases_update"; - // notify player.name.api_id about phase_update - await Promise.map(telemetry_objects, async (t) => - await ch.publish("amq.topic", - m.properties.headers.notify + "." + t.match_api_id, - new Buffer("phase_update")) - ); + // notify match.api_id about phase_update + await ch.publish("amq.topic", + m.properties.headers.notify, + new Buffer("phase_update")) } if (m.properties.headers.donotify == true) // TODO remove later |
