mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:37:22 +01:00
fix bot
This commit is contained in:
parent
2fe312ad67
commit
33afe8da2c
3 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ public class DiscordBotServices
|
|||
|
||||
public ILogger<DiscordBotServices> Logger { get; init; }
|
||||
public MareMetrics Metrics { get; init; }
|
||||
public ConcurrentQueue<KeyValuePair<ulong, Action<DiscordBotServices>>> VerificationQueue { get; } = new();
|
||||
public ConcurrentQueue<KeyValuePair<ulong, Func<DiscordBotServices, Task>>> VerificationQueue { get; } = new();
|
||||
|
||||
public Task Start()
|
||||
{
|
||||
|
|
@ -49,7 +49,7 @@ public class DiscordBotServices
|
|||
{
|
||||
try
|
||||
{
|
||||
queueitem.Value.Invoke(this);
|
||||
await queueitem.Value.Invoke(this).ConfigureAwait(false);
|
||||
Logger.LogInformation("Processed Verification for {key}", queueitem.Key);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue