mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 14:42:56 +08:00
Remove unused cancellationToken
parameter in synchronous BeatmapOnlineLookupQueue
flow
This commit is contained in:
parent
9b33fbbee5
commit
8424d86e9a
@ -54,7 +54,7 @@ namespace osu.Game.Beatmaps
|
|||||||
prepareLocalCache();
|
prepareLocalCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Update(BeatmapSetInfo beatmapSet, CancellationToken cancellationToken)
|
public void Update(BeatmapSetInfo beatmapSet)
|
||||||
{
|
{
|
||||||
foreach (var b in beatmapSet.Beatmaps)
|
foreach (var b in beatmapSet.Beatmaps)
|
||||||
lookup(beatmapSet, b);
|
lookup(beatmapSet, b);
|
||||||
|
@ -71,7 +71,7 @@ namespace osu.Game.Stores
|
|||||||
|
|
||||||
bool hadOnlineIDs = beatmapSet.Beatmaps.Any(b => b.OnlineID > 0);
|
bool hadOnlineIDs = beatmapSet.Beatmaps.Any(b => b.OnlineID > 0);
|
||||||
|
|
||||||
onlineLookupQueue?.Update(beatmapSet, cancellationToken);
|
onlineLookupQueue?.Update(beatmapSet);
|
||||||
|
|
||||||
// ensure at least one beatmap was able to retrieve or keep an online ID, else drop the set ID.
|
// ensure at least one beatmap was able to retrieve or keep an online ID, else drop the set ID.
|
||||||
if (hadOnlineIDs && !beatmapSet.Beatmaps.Any(b => b.OnlineID > 0))
|
if (hadOnlineIDs && !beatmapSet.Beatmaps.Any(b => b.OnlineID > 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user