diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 19:59:20 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 19:59:20 +0200 |
| commit | 765e9356fa6b571838237cc73bc9552c1e6695d8 (patch) | |
| tree | 65ecca75a6c3d63358441e2a86ca15614612792a /worker.js | |
| parent | 7c97f036e362a7ef1045ccacd390ec3ab8452e8c (diff) | |
| download | processor-765e9356fa6b571838237cc73bc9552c1e6695d8.tar.gz processor-765e9356fa6b571838237cc73bc9552c1e6695d8.zip | |
do not call analyzer
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -41,7 +41,6 @@ function snakeCaseKeys(obj) { rabbit = await amqp.connect(RABBITMQ_URI, { heartbeat: 120 }); ch = await rabbit.createChannel(); await ch.assertQueue("process", {durable: true}); - await ch.assertQueue("analyze", {durable: true}); break; } catch (err) { console.error(err); @@ -385,14 +384,6 @@ function snakeCaseKeys(obj) { // …global about new matches if (match_records.length > 0) await ch.publish("amq.topic", "global", new Buffer("matches_update")); - - // notify analyzer - Promise.all(participant_stats_records.map(async (p) => - await ch.sendToQueue("analyze", new Buffer(p.participant_api_id), { - persistent: true, - type: "participant" - }) - )); } // Split participant API data into participant and participant_stats |
