mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +08:00
Add note about reasoning behind MultiplayerClient.GetAPIBeatmap
call
This commit is contained in:
parent
3ea07b426b
commit
c097dc8048
@ -166,6 +166,8 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
IBeatmapInfo foundBeatmap;
|
IBeatmapInfo foundBeatmap;
|
||||||
|
|
||||||
if (multiplayerClient != null)
|
if (multiplayerClient != null)
|
||||||
|
// This call can eventually go away (and use the else case below).
|
||||||
|
// Currently required only due to the method being overridden to provide special behaviour in tests.
|
||||||
foundBeatmap = await multiplayerClient.GetAPIBeatmap(Item.BeatmapID).ConfigureAwait(false);
|
foundBeatmap = await multiplayerClient.GetAPIBeatmap(Item.BeatmapID).ConfigureAwait(false);
|
||||||
else
|
else
|
||||||
foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);
|
foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user