disable context pooling
This commit is contained in:
		| @@ -376,7 +376,7 @@ namespace MareSynchronosServer.Discord | |||||||
|  |  | ||||||
|                 _timer = new Timer(UpdateStatus, null, TimeSpan.Zero, TimeSpan.FromSeconds(15)); |                 _timer = new Timer(UpdateStatus, null, TimeSpan.Zero, TimeSpan.FromSeconds(15)); | ||||||
|  |  | ||||||
|                 ProcessQueueWork(); |                 _ = ProcessQueueWork(); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -385,7 +385,6 @@ namespace MareSynchronosServer.Discord | |||||||
|             verificationTaskCts = new CancellationTokenSource(); |             verificationTaskCts = new CancellationTokenSource(); | ||||||
|             while (!verificationTaskCts.IsCancellationRequested) |             while (!verificationTaskCts.IsCancellationRequested) | ||||||
|             { |             { | ||||||
|  |  | ||||||
|                 if (verificationQueue.TryDequeue(out var queueitem)) |                 if (verificationQueue.TryDequeue(out var queueitem)) | ||||||
|                 { |                 { | ||||||
|                     try |                     try | ||||||
|   | |||||||
| @@ -49,7 +49,7 @@ namespace MareSynchronosServer | |||||||
|             services.AddSingleton<IUserIdProvider, IdBasedUserIdProvider>(); |             services.AddSingleton<IUserIdProvider, IdBasedUserIdProvider>(); | ||||||
|             services.AddTransient(_ => Configuration); |             services.AddTransient(_ => Configuration); | ||||||
|  |  | ||||||
|             services.AddDbContextPool<MareDbContext>(options => |             services.AddDbContext<MareDbContext>(options => | ||||||
|             { |             { | ||||||
|                 options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"), builder => |                 options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection"), builder => | ||||||
|                 { |                 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant