Add some more resiliency to DB errors
This commit is contained in:
		| @@ -37,7 +37,10 @@ namespace PluralKit.Core | ||||
|              | ||||
|             _connectionString = new NpgsqlConnectionStringBuilder(_config.Database) | ||||
|             { | ||||
|                 Pooling = true, MaxPoolSize = 500, Enlist = false, NoResetOnClose = true | ||||
|                 Pooling = true, MaxPoolSize = 500, Enlist = false, NoResetOnClose = true, | ||||
|                  | ||||
|                 // Lower timeout than default (15s -> 2s), should ideally fail-fast instead of hanging | ||||
|                 Timeout = 2 | ||||
|             }.ConnectionString; | ||||
|         } | ||||
|          | ||||
|   | ||||
		Reference in New Issue
	
	Block a user