mirror of
https://github.com/Caraxi/mare.server.git
synced 2026-01-03 17:43:39 +01:00
disable context pooling
This commit is contained in:
parent
f29edbd1c3
commit
a5fe927cd5
2 changed files with 2 additions and 3 deletions
|
|
@ -376,7 +376,7 @@ namespace MareSynchronosServer.Discord
|
|||
|
||||
_timer = new Timer(UpdateStatus, null, TimeSpan.Zero, TimeSpan.FromSeconds(15));
|
||||
|
||||
ProcessQueueWork();
|
||||
_ = ProcessQueueWork();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -385,7 +385,6 @@ namespace MareSynchronosServer.Discord
|
|||
verificationTaskCts = new CancellationTokenSource();
|
||||
while (!verificationTaskCts.IsCancellationRequested)
|
||||
{
|
||||
|
||||
if (verificationQueue.TryDequeue(out var queueitem))
|
||||
{
|
||||
try
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ namespace MareSynchronosServer
|
|||
services.AddSingleton<IUserIdProvider, IdBasedUserIdProvider>();
|
||||
services.AddTransient(_ => Configuration);
|
||||
|
||||
services.AddDbContextPool<MareDbContext>(options =>
|
||||
services.AddDbContext<MareDbContext>(options =>
|
||||
{
|
||||
options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"), builder =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue