From 218ed2a77cb6fd5875239d2d53e9b4dba7533f5d Mon Sep 17 00:00:00 2001 From: rbajollari Date: Tue, 16 Jan 2024 19:22:30 -0500 Subject: [PATCH] lint --- oracle/provider/astroport.go | 3 +-- oracle/provider/astroport_test.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/oracle/provider/astroport.go b/oracle/provider/astroport.go index 79835f9..dc5f70d 100644 --- a/oracle/provider/astroport.go +++ b/oracle/provider/astroport.go @@ -221,9 +221,8 @@ func (p *AstroportProvider) getAvailableAssets() (map[string]types.CurrencyPair, switch asset.QuoteSymbol.(type) { case string: quoteSymbol = strings.ToUpper(asset.QuoteSymbol.(string)) - default: - // leave quote symbol to be empty string } + availablePairs[tickerID] = types.CurrencyPair{ Base: strings.ToUpper(asset.BaseSymbol), Quote: quoteSymbol, diff --git a/oracle/provider/astroport_test.go b/oracle/provider/astroport_test.go index 5e80124..9101fff 100644 --- a/oracle/provider/astroport_test.go +++ b/oracle/provider/astroport_test.go @@ -33,7 +33,7 @@ func TestAstroportProvider_GetTickers(t *testing.T) { require.NotEmpty(t, availPairs) p.StartConnections() - time.Sleep(6 * time.Second) + time.Sleep(10 * time.Second) res, err := p.GetTickerPrices(pairs...) require.NoError(t, err)