mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add support for multithreaded API servers
This commit is contained in:
parent
e502a2d8c8
commit
6c3fcf699e
6 changed files with 66 additions and 1 deletions
|
|
@ -20,6 +20,12 @@ export const setupDatabase = async (
|
|||
try {
|
||||
await client.connect();
|
||||
} catch (e) {
|
||||
if (
|
||||
(e as Error).message ===
|
||||
"Client has already been connected. You cannot reuse a client."
|
||||
)
|
||||
return;
|
||||
|
||||
await logger.logError(LogLevel.CRITICAL, "Database", e as Error);
|
||||
|
||||
await logger.log(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue