From 08ab24afc5f19b3de7ce236864efa29b39b73011 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 11 Jul 2023 14:20:44 +0800 Subject: [PATCH] chore: pkg imported more than once Signed-off-by: guoguangwu --- pkg/api/impl/coingecko/coingecko.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/api/impl/coingecko/coingecko.go b/pkg/api/impl/coingecko/coingecko.go index ea22bfb..6dfdc54 100644 --- a/pkg/api/impl/coingecko/coingecko.go +++ b/pkg/api/impl/coingecko/coingecko.go @@ -12,7 +12,6 @@ import ( apitypes "github.com/cointop-sh/cointop/pkg/api/types" "github.com/cointop-sh/cointop/pkg/api/util" gecko "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3" - "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types" geckoTypes "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types" ) @@ -34,7 +33,7 @@ type Service struct { maxResultsPerPage uint maxPages uint cacheMap sync.Map - cachedRates *types.ExchangeRatesItem + cachedRates *geckoTypes.ExchangeRatesItem } // NewCoinGecko new service @@ -149,7 +148,7 @@ func (s *Service) GetCoinGraphData(convert, symbol, name string, start, end int6 } // GetExchangeRates returns the exchange rates from the backend, or a cached copy if requested and available -func (s *Service) GetExchangeRates(cached bool) (*types.ExchangeRatesItem, error) { +func (s *Service) GetExchangeRates(cached bool) (*geckoTypes.ExchangeRatesItem, error) { if s.cachedRates == nil || !cached { rates, err := s.client.ExchangeRates() if err != nil {