summaryrefslogtreecommitdiff
path: root/worker.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-13 19:59:20 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-13 19:59:20 +0200
commit765e9356fa6b571838237cc73bc9552c1e6695d8 (patch)
tree65ecca75a6c3d63358441e2a86ca15614612792a /worker.js
parent7c97f036e362a7ef1045ccacd390ec3ab8452e8c (diff)
downloadshrinker-765e9356fa6b571838237cc73bc9552c1e6695d8.tar.gz
shrinker-765e9356fa6b571838237cc73bc9552c1e6695d8.zip
do not call analyzer
Diffstat (limited to 'worker.js')
-rw-r--r--worker.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/worker.js b/worker.js
index 1235add..05f81b6 100644
--- a/worker.js
+++ b/worker.js
@@ -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