Skip to content

Commit

Permalink
Adjust connection pooling again
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 11, 2024
1 parent a19ab1c commit af78727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GlobalRankLookupCache/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static async Task<MySqlConnection> GetDatabaseConnection()
string host = (Environment.GetEnvironmentVariable("DB_HOST") ?? "localhost");
string user = (Environment.GetEnvironmentVariable("DB_USER") ?? "root");

var connection = new MySqlConnection($"Server={host};Database=osu;User ID={user};ConnectionReset=false;Pooling=true;Max Pool Size=100;Connection Timeout=30;Connection Lifetime=300;");
var connection = new MySqlConnection($"Server={host};Database=osu;User ID={user};ConnectionReset=false;Pooling=true;Max Pool Size=100;Connection Timeout=30;");
await connection.OpenAsync();
return connection;
}
Expand Down

0 comments on commit af78727

Please sign in to comment.