Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

perf(worker): use the default idle heartbeat for lane fetches

Hampus270176b4e2cd
diff --git a/fluxer_api/src/api/worker/WorkerRunner.ts b/fluxer_api/src/api/worker/WorkerRunner.ts
index bb5a170cb..28c39aed1 100644
--- a/fluxer_api/src/api/worker/WorkerRunner.ts
+++ b/fluxer_api/src/api/worker/WorkerRunner.ts
@@ -250,10 +250,7 @@ export class WorkerRunner {
if (!this.running) {
break;
}
- const messages = await consumer.fetch({
- max_messages: this.concurrency - this.inFlightJobs.size,
- idle_heartbeat: 5000,
- });
+ const messages = await consumer.fetch({max_messages: this.concurrency - this.inFlightJobs.size});
this.consumerMessages = messages;
if (!this.running) {
messages.stop();