1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 14:51:31 +08:00

Remove redundant api field from HubClientConnector

This commit is contained in:
Bartłomiej Dach
2023-11-21 14:33:18 +09:00
Unverified
parent 1c612e2e0c
commit 2391035e49
+1 -3
View File
@@ -27,7 +27,6 @@ namespace osu.Game.Online
private readonly string endpoint;
private readonly string versionHash;
private readonly bool preferMessagePack;
private readonly IAPIProvider api;
/// <summary>
/// The current connection opened by this connector.
@@ -47,7 +46,6 @@ namespace osu.Game.Online
{
ClientName = clientName;
this.endpoint = endpoint;
this.api = api;
this.versionHash = versionHash;
this.preferMessagePack = preferMessagePack;
@@ -70,7 +68,7 @@ namespace osu.Game.Online
options.Proxy.Credentials = CredentialCache.DefaultCredentials;
}
options.Headers.Add("Authorization", $"Bearer {api.AccessToken}");
options.Headers.Add("Authorization", $"Bearer {API.AccessToken}");
options.Headers.Add("OsuVersionHash", versionHash);
});