mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Free some memory
This commit is contained in:
parent
b06b83503c
commit
b1584c352b
1 changed files with 1 additions and 2 deletions
|
@ -65,9 +65,8 @@ namespace BTCPayServer.HostedServices
|
|||
|
||||
async Task RefreshCoinAverageSupportedExchanges()
|
||||
{
|
||||
var tickers = await new CoinAverageRateProvider() { Authenticator = _coinAverageSettings }.GetExchangeTickersAsync();
|
||||
var exchanges = new CoinAverageExchanges();
|
||||
foreach (var item in tickers
|
||||
foreach (var item in (await new CoinAverageRateProvider() { Authenticator = _coinAverageSettings }.GetExchangeTickersAsync())
|
||||
.Exchanges
|
||||
.Select(c => new CoinAverageExchange(c.Name, c.DisplayName)))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue