Skip to content

Commit ae94a12

Browse files
Merge pull request #634 from PathfinderHonorManager/develop
Added db timeout
2 parents 8f40bc7 + 24c99f0 commit ae94a12

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)