From c98b20456203b1f488f51fe00cb7ea406b82a649 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 12 Aug 2023 23:12:59 +0200 Subject: [PATCH] fix: broken access to DB document --- Server/DB/WonderkingContext.cs | 2 +- Server/Services/PacketDistributorService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/DB/WonderkingContext.cs b/Server/DB/WonderkingContext.cs index aae0df9..687464b 100644 --- a/Server/DB/WonderkingContext.cs +++ b/Server/DB/WonderkingContext.cs @@ -10,5 +10,5 @@ public class WonderkingContext : CouchContext { } - public CouchDatabase Accounts { get; } + public CouchDatabase Accounts { get; set; } } diff --git a/Server/Services/PacketDistributorService.cs b/Server/Services/PacketDistributorService.cs index 5b31d75..cf91c73 100644 --- a/Server/Services/PacketDistributorService.cs +++ b/Server/Services/PacketDistributorService.cs @@ -83,7 +83,7 @@ public class PacketDistributorService : IHostedService public void AddPacket(RawPacket rawPacket) { this.concurrentQueue.Enqueue(rawPacket); - Task.Run(() => this.DequeueRawPacketAsync()); + Task.Run(this.DequeueRawPacketAsync); this.logger.LogInformation("Packet with ID: {MessageOperationCode} has been received", rawPacket.OperationCode); }