Skip to content

Commit 24c99f0

Browse files
author
Brian Cummings
committed
Added db timeout
1 parent fe291bc commit 24c99f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PathfinderHonorManager/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ public void ConfigureServices(IServiceCollection services)
120120
});
121121
services
122122
.AddDbContext<PathfinderContext>(options =>
123-
options.UseNpgsql(Configuration.GetConnectionString("PathfinderCS")));
123+
options.UseNpgsql(Configuration.GetConnectionString("PathfinderCS"),
124+
npgsqlOptions => npgsqlOptions.CommandTimeout(30)));
124125
services
125126
.AddAutoMapper(typeof(AutoMapperConfig));
126127
services

0 commit comments

Comments
 (0)