diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-28 10:15:52 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-28 10:15:52 +0200 |
| commit | a05e70477f930816aa9707b1c09428f8f1a6f2e4 (patch) | |
| tree | 33c3ef3be46e1a33f49f14f1fff42642a4076fdc | |
| parent | 6501717fd58e7b731c1922c1669f18ce0c3da10a (diff) | |
| download | shrinker-a05e70477f930816aa9707b1c09428f8f1a6f2e4.tar.gz shrinker-a05e70477f930816aa9707b1c09428f8f1a6f2e4.zip | |
send phases_update notification
| -rw-r--r-- | worker.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -711,6 +711,10 @@ function flatten(obj) { // …global about new matches if (match_records.length > 0) await ch.publish("amq.topic", "global", new Buffer("matches_update")); + // …about new phases + await Promise.map(telemetry_objects, async (t) => + await ch.publish("amq.topic", "match." + t.match_api_id, + new Buffer("phases_update")) ); } // Split participant API data into participant and participant_stats |
