diff options
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/database.ts b/src/database.ts index 66edeff..b4b6043 100644 --- a/src/database.ts +++ b/src/database.ts @@ -198,7 +198,9 @@ async function connect(): Promise<void> { return console.warn('Warning: db_uri was not found in .env. Features that utilize the database such as leaderboards won\'t work.') if (!process.env.db_name) return console.warn('Warning: db_name was not found in .env. Features that utilize the database such as leaderboards won\'t work.') - client = await MongoClient.connect(process.env.db_uri) + client = await MongoClient.connect(process.env.db_uri, { + maxConnecting: 100 + }) database = client.db(process.env.db_name) memberLeaderboardsCollection = database.collection('member-leaderboards') profileLeaderboardsCollection = database.collection('profile-leaderboards') |