File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
osu.Server.QueueProcessor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ public static MySqlConnection GetConnection()
2525 string user = ( Environment . GetEnvironmentVariable ( "DB_USER" ) ?? "root" ) ;
2626 string password = ( Environment . GetEnvironmentVariable ( "DB_PASS" ) ?? string . Empty ) ;
2727 string name = ( Environment . GetEnvironmentVariable ( "DB_NAME" ) ?? "osu" ) ;
28- bool pooling = Environment . GetEnvironmentVariable ( "DB_POOLING" ) != Boolean . FalseString && Environment . GetEnvironmentVariable ( "DB_POOLING" ) != "0" ;
28+ bool pooling = string . Equals ( Environment . GetEnvironmentVariable ( "DB_POOLING" ) , Boolean . FalseString , StringComparison . InvariantCultureIgnoreCase )
29+ && Environment . GetEnvironmentVariable ( "DB_POOLING" ) != "0" ;
2930 int maxPoolSize = int . Parse ( Environment . GetEnvironmentVariable ( "DB_MAX_POOL_SIZE" ) ?? "100" ) ;
3031
3132 string passwordString = string . IsNullOrEmpty ( password ) ? string . Empty : $ "Password={ password } ;";
You can’t perform that action at this time.
0 commit comments