Actually use HashSet<T> to initialize _moduleDefs

This commit is contained in:
FiniteReality
2017-01-22 03:08:52 +00:00
parent a65ba095af
commit 0715cb6623

View File

@@ -38,7 +38,7 @@ namespace Discord.Commands
_moduleLock = new SemaphoreSlim(1, 1);
_typedModuleDefs = new ConcurrentDictionary<Type, ModuleInfo>();
_moduleDefs = new ConcurrentBag<ModuleInfo>();
_moduleDefs = new HashSet<ModuleInfo>();
_map = new CommandMap(this);
_typeReaders = new ConcurrentDictionary<Type, ConcurrentDictionary<Type, TypeReader>>();