summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-13 12:58:17 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-13 12:58:17 +0200
commit78273446460c7b4d94060f70255ba244ac40bb33 (patch)
treee8c18180dfb42bf725bf38e8bcefe8100e53f4bb
parente992a3878bb244b49da1ad779c931dc57509e784 (diff)
downloadshrinker-78273446460c7b4d94060f70255ba244ac40bb33.tar.gz
shrinker-78273446460c7b4d94060f70255ba244ac40bb33.zip
heartbeat
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 90d8274..cbeb311 100644
--- a/worker.js
+++ b/worker.js
@@ -40,7 +40,7 @@ function snakeCaseKeys(obj) {
while (true) {
try {
seq = new Seq(DATABASE_URI, { logging: () => {} });
- rabbit = await amqp.connect(RABBITMQ_URI);
+ rabbit = await amqp.connect(RABBITMQ_URI, { heartbeat: 30 });
ch = await rabbit.createChannel();
await ch.assertQueue("process", {durable: true});
await ch.assertQueue("crunch", {durable: true});