Replaced all usages of ConcurrentDictionary with NonBlocking.ConcurrentDictionary

This commit is contained in:
Kwoth
2022-06-24 08:37:25 +00:00
parent dc846965ae
commit f398cddaf0
7 changed files with 157 additions and 790 deletions

View File

@@ -1,5 +1,6 @@
#nullable disable
using NadekoBot.Services.Database.Models;
using System.Collections.Concurrent;
namespace NadekoBot.Modules.Gambling.Common.Events;

View File

@@ -20,7 +20,7 @@ public class ReactionEvent : ICurrencyEvent
private readonly bool _isPotLimited;
private readonly ITextChannel _channel;
private readonly ConcurrentHashSet<ulong> _awardedUsers = new();
private readonly ConcurrentQueue<ulong> _toAward = new();
private readonly System.Collections.Concurrent.ConcurrentQueue<ulong> _toAward = new();
private readonly Timer _t;
private readonly Timer _timeout;
private readonly bool _noRecentlyJoinedServer;