Add p-queue timeouts; fix search crash; improve promise rejection logging
This commit is contained in:
parent
9f9ce91a9c
commit
bc3b61db1d
17 changed files with 54 additions and 26 deletions
|
@ -92,7 +92,7 @@ const makeImagePath = (src: string) => {
|
|||
return `${ROOT_PATH}node_modules/emoji-datasource-apple/img/apple/64/${src}`;
|
||||
};
|
||||
|
||||
const imageQueue = new PQueue({ concurrency: 10 });
|
||||
const imageQueue = new PQueue({ concurrency: 10, timeout: 1000 * 60 * 2 });
|
||||
const images = new Set();
|
||||
|
||||
export const preloadImages = async (): Promise<void> => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue