mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Use HashSet instead of ConcurentBag
This commit is contained in:
parent
90ce1bd5f0
commit
dc69eefa51
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user