1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Use HashSet instead of ConcurentBag

This commit is contained in:
Dean Herbert 2020-11-09 11:54:28 +09:00
parent 90ce1bd5f0
commit dc69eefa51

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System; using System;
using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
@ -16,7 +15,7 @@ namespace osu.Game.Database
{ {
public class UserLookupCache : MemoryCachingComponent<int, User> public class UserLookupCache : MemoryCachingComponent<int, User>
{ {
private readonly ConcurrentBag<int> nextTaskIDs = new ConcurrentBag<int>(); private readonly HashSet<int> nextTaskIDs = new HashSet<int>();
[Resolved] [Resolved]
private IAPIProvider api { get; set; } private IAPIProvider api { get; set; }