We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3430bd commit fd453c0Copy full SHA for fd453c0
1 file changed
Content.Server/Database/ServerDbManager.cs
@@ -1157,7 +1157,11 @@ private IAsyncEnumerable<T> RunDbCommand<T>(Func<IAsyncEnumerable<T>> command)
1157
1158
_sawmill.Debug($"Using Postgres \"{host}:{port}/{db}\"");
1159
1160
- builder.UseNpgsql(connectionString);
+ builder.UseNpgsql(connectionString, npgsqlOptions =>
1161
+ {
1162
+ npgsqlOptions.CommandTimeout(300);
1163
+ });
1164
+
1165
SetupLogging(builder);
1166
return (builder.Options, connectionString);
1167
}
0 commit comments