Use throwOnTimeout
option for PQueue
This commit is contained in:
parent
bd6ee4b16d
commit
76a30a5196
10 changed files with 54 additions and 10 deletions
|
@ -200,17 +200,27 @@ export default class MessageReceiver
|
|||
}
|
||||
this.serverTrustRoot = Bytes.fromBase64(serverTrustRoot);
|
||||
|
||||
this.incomingQueue = new PQueue({ concurrency: 1, timeout: 1000 * 60 * 2 });
|
||||
this.appQueue = new PQueue({ concurrency: 1, timeout: 1000 * 60 * 2 });
|
||||
this.incomingQueue = new PQueue({
|
||||
concurrency: 1,
|
||||
timeout: 1000 * 60 * 2,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
this.appQueue = new PQueue({
|
||||
concurrency: 1,
|
||||
timeout: 1000 * 60 * 2,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
|
||||
// All envelopes start in encryptedQueue and progress to decryptedQueue
|
||||
this.encryptedQueue = new PQueue({
|
||||
concurrency: 1,
|
||||
timeout: 1000 * 60 * 2,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
this.decryptedQueue = new PQueue({
|
||||
concurrency: 1,
|
||||
timeout: 1000 * 60 * 2,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
|
||||
this.decryptAndCacheBatcher = createBatcher<CacheAddItemType>({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue