diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-26 13:09:05 +0000 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-26 13:09:05 +0000 |
commit | b75135d8cdb702423d693558ffaec3f025264b98 (patch) | |
tree | 1e7c0d746ac387a0d6b648d4e452169db17debc6 /LibMatrix/Helpers | |
parent | Minor cleanup (diff) | |
download | LibMatrix-b75135d8cdb702423d693558ffaec3f025264b98.tar.xz |
split client and server http client for homeservers
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/Helpers/SyncHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/Helpers/SyncHelper.cs b/LibMatrix/Helpers/SyncHelper.cs index c6c5378..fb7fad2 100644 --- a/LibMatrix/Helpers/SyncHelper.cs +++ b/LibMatrix/Helpers/SyncHelper.cs @@ -27,7 +27,7 @@ public class SyncHelper(AuthenticatedHomeserverGeneric homeserver, ILogger? logg // Console.WriteLine("Calling: " + url); logger?.LogInformation("SyncHelper: Calling: {}", url); try { - return await homeserver?._httpClient?.GetFromJsonAsync<SyncResponse>(url, cancellationToken: cancellationToken ?? CancellationToken.None)!; + return await homeserver?.ClientHttpClient?.GetFromJsonAsync<SyncResponse>(url, cancellationToken: cancellationToken ?? CancellationToken.None)!; } catch (TaskCanceledException) { Console.WriteLine("Sync cancelled!"); |