From 771a136acd2c8b147aa7fc5fba4ac2f04c94ffa3 Mon Sep 17 00:00:00 2001 From: edwin Date: Tue, 1 Oct 2024 21:22:42 +0800 Subject: [PATCH] pkg/exchange: fix redundant code --- pkg/exchange/bybit/stream.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/exchange/bybit/stream.go b/pkg/exchange/bybit/stream.go index 2a7124dfa..12e594722 100644 --- a/pkg/exchange/bybit/stream.go +++ b/pkg/exchange/bybit/stream.go @@ -60,7 +60,6 @@ type Stream struct { key, secret string streamDataProvider StreamDataProvider - feeRateProvider FeeRatePoller marketsInfo types.MarketMap bookEventCallbacks []func(e BookEvent) @@ -481,7 +480,7 @@ func getFeeRate(symbol string, poller FeeRatePoller, marketsInfo types.MarketMap func (s *Stream) handleTradeEvent(events []TradeEvent) { for _, event := range events { - feeRate := getFeeRate(event.Symbol, s.feeRateProvider, s.marketsInfo) + feeRate := getFeeRate(event.Symbol, s.streamDataProvider, s.marketsInfo) gTrade, err := event.toGlobalTrade(feeRate) if err != nil { if tradeLogLimiter.Allow() {