From c5d38ca57e8767b48515f7683e7f1806948dc335 Mon Sep 17 00:00:00 2001 From: sandy <18382255942@163.com> Date: Wed, 10 Mar 2021 21:58:47 +0800 Subject: [PATCH] fix(): fix cgCoinsMap bug --- services/markets/coingecko/tickers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/markets/coingecko/tickers.go b/services/markets/coingecko/tickers.go index 976351e2..e4ebc0d6 100755 --- a/services/markets/coingecko/tickers.go +++ b/services/markets/coingecko/tickers.go @@ -114,7 +114,8 @@ func createCgCoinsMap(coins Coins) map[string][]CoinResult { PotentialCoinID: getCoinId(platform), } - cgCoinsMap[c.Id] = []CoinResult{cr} + // need append but not recover + cgCoinsMap[c.Id] = append(cgCoinsMap[c.Id], cr) } }