mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
Fix other get missing throw
This commit is contained in:
@@ -46,7 +46,11 @@ async function getTraced<T>(fetchFromDB: () => Promise<T>, key: string): Promise
|
|||||||
endTime: Date.now()
|
endTime: Date.now()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} catch (e) { } //eslint-disable-line no-empty
|
} catch (e) {
|
||||||
|
if (e instanceof TooManyActiveConnectionsError) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const dbStartTime = Date.now();
|
const dbStartTime = Date.now();
|
||||||
const data = await fetchFromDB();
|
const data = await fetchFromDB();
|
||||||
|
|||||||
Reference in New Issue
Block a user