Use MQ for updating directives in entire space

This commit is contained in:
Zef Hemel
2023-08-10 19:00:28 +02:00
parent 97a84e8538
commit d4f7833f0d
6 changed files with 64 additions and 23 deletions
+2 -2
View File
@@ -99,8 +99,8 @@ export class Client {
this.mq = new DexieMQ(`${this.dbPrefix}_mq`, indexedDB, IDBKeyRange);
setInterval(() => {
// Timeout after 5s
this.mq.requeueTimeouts(5000, 3).catch(console.error);
// Timeout after 5s, retries 3 times, otherwise drops the message (no DLQ)
this.mq.requeueTimeouts(5000, 3, true).catch(console.error);
}, 20000); // Look to requeue every 20s
// Event hook