From ee3fa15a390046937884604c0292dd5b51fe7a81 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:10:36 +1100 Subject: [PATCH] Increase timeout incase of host reboot. --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index c0dc842..5382d5e 100644 --- a/src/client.ts +++ b/src/client.ts @@ -94,7 +94,7 @@ export default class TClient extends Client { mongoose.set('strictQuery', true); await mongoose.connect(this.tokens.mongodb_uri, { autoIndex: true, - serverSelectionTimeoutMS: 5000, + serverSelectionTimeoutMS: 12000, socketTimeoutMS: 30000, family: 4, keepAlive: true,