mirror of https://github.com/ppy/osu
Add missing async suffix
This commit is contained in:
parent
42e4df8cc8
commit
90ce1bd5f0
|
@ -30,7 +30,7 @@ public class UserLookupCache : MemoryCachingComponent<int, User>
|
|||
/// </summary>
|
||||
private bool pendingRequestConsumedIDs;
|
||||
|
||||
public Task<User> GetUser(int userId, CancellationToken token = default) => GetAsync(userId, token);
|
||||
public Task<User> GetUserAsync(int userId, CancellationToken token = default) => GetAsync(userId, token);
|
||||
|
||||
protected override async Task<User> ComputeValueAsync(int lookup, CancellationToken token = default)
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ protected override void LoadComplete()
|
|||
|
||||
foreach (var id in e.NewItems.OfType<int>().ToArray())
|
||||
{
|
||||
users.GetUser(id).ContinueWith(u =>
|
||||
users.GetUserAsync(id).ContinueWith(u =>
|
||||
{
|
||||
if (u.Result == null)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue