mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Update OnlineLookupCache
to use async version of Perform
call
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user