feat: enforce default timeout to prevent any hanging promises

This commit is contained in:
Adhiraj Singh
2021-11-25 19:54:56 +05:30
parent b91a1cbcf3
commit 6e830c1e1b
4 changed files with 7 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
logger: P().child({ class: 'baileys' }),
printQRInTerminal: false,
emitOwnEvents: true,
defaultQueryTimeoutMs: 60_000
}
export const MEDIA_PATH_MAP: { [T in MediaType]: string } = {