fix: map decrypted CoinGlass liq heatmap payload
Some checks failed
ci / build + vet + guard + race (push) Has been cancelled

This commit is contained in:
dela
2026-05-25 17:12:41 +08:00
parent 1c990cd3bc
commit 7e31e9cbaf
3 changed files with 54 additions and 23 deletions

View File

@@ -81,6 +81,10 @@ func (c *CoinglassCollector) CollectLiqHeatMap(ctx context.Context) error {
item, err := c.d.Provider.GetLiqHeatMap(ctx, symbol, c.d.LiqHeatMapInterval, c.d.LiqHeatMapLimit)
if err != nil {
if errors.Is(err, cgapi.ErrAPIBusiness) {
c.d.Logger.Warn("coinglass_liq_heatmap_business_error", "symbol", symbol, "err", err)
continue
}
hadError = true
c.recordLiqHeatMapError(symbol, err)
continue