Skip to content

Commit d44f8ec

Browse files
authored
Add max connections setting to bot configuration
1 parent 335c0f7 commit d44f8ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bot.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,8 @@ function RunBot(): void {
908908
->setUsername($dbUser)
909909
->setPassword($dbPass)
910910
->setDatabase($dbName)
911-
->setEphemeralFilesystemPrefix("Session_{$BOT_NAME}");
911+
->setEphemeralFilesystemPrefix("Session_{$BOT_NAME}")
912+
->setMaxConnections(10000);
912913
$settings->setDb($db);
913914
}
914915

0 commit comments

Comments
 (0)