Bump and fix rate providers (#3813)

* Bump and fix rate providers

* fix
This commit is contained in:
Andrew Camilleri
2022-06-06 11:56:50 +02:00
committed by GitHub
parent a443426d83
commit ae10d0c7fd
5 changed files with 27 additions and 27 deletions

View File

@@ -108,7 +108,7 @@ namespace BTCPayServer.Services.Rates
set;
}
public async Task<string> MakeRequestAsync(string url, string baseUrl = null, Dictionary<string, object> payload = null, string method = null)
public async Task<IAPIRequestMaker.RequestResult<string>> MakeRequestAsync(string url, string baseUrl = null, Dictionary<string, object> payload = null, string method = null)
{
await default(SynchronizationContextRemover);
await api.RateLimit.WaitToProceedAsync();
@@ -170,7 +170,11 @@ namespace BTCPayServer.Services.Rates
{
response?.Dispose();
}
return responseString;
return new IAPIRequestMaker.RequestResult<string>()
{
Response = responseString,
HTTPHeaderDate = response.Headers.Date
};
}
}
}