mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Use throwOnTimeout option for PQueue
This commit is contained in:
@@ -2015,7 +2015,11 @@ export function initialize({
|
||||
});
|
||||
|
||||
// Upload stickers
|
||||
const queue = new PQueue({ concurrency: 3, timeout: 1000 * 60 * 2 });
|
||||
const queue = new PQueue({
|
||||
concurrency: 3,
|
||||
timeout: 1000 * 60 * 2,
|
||||
throwOnTimeout: true,
|
||||
});
|
||||
await Promise.all(
|
||||
stickers.map(async (sticker: ServerAttachmentType, index: number) => {
|
||||
const stickerParams = makePutParams(
|
||||
|
||||
Reference in New Issue
Block a user