mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Update OnlineLookupCache
to use async version of Perform
call
This commit is contained in:
parent
be998cdb0a
commit
45841673f6
@ -91,7 +91,7 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
private void performLookup()
|
||||
private async Task performLookup()
|
||||
{
|
||||
// contains at most 50 unique IDs from tasks, which is used to perform the lookup.
|
||||
var nextTaskBatch = new Dictionary<TLookup, List<TaskCompletionSource<TValue>>>();
|
||||
@ -127,7 +127,7 @@ namespace osu.Game.Database
|
||||
|
||||
// rather than queueing, we maintain our own single-threaded request stream.
|
||||
// todo: we probably want retry logic here.
|
||||
api.Perform(request);
|
||||
await api.PerformAsync(request).ConfigureAwait(false);
|
||||
|
||||
finishPendingTask();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user