Skip to content

Commit

Permalink
Increase file size limit for Binance market info data (#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzen authored Aug 8, 2024
1 parent 12aeb7c commit 1efedb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/mm/libxc/binance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1917,5 +1917,5 @@ func binanceMarketToDexMarkets(binanceBaseSymbol, binanceQuoteSymbol string, tok

func requestInto(req *http.Request, thing interface{}) error {
// bnc.log.Tracef("Sending request: %+v", req)
return dexnet.Do(req, thing, dexnet.WithSizeLimit(1<<22))
return dexnet.Do(req, thing, dexnet.WithSizeLimit(1<<24))
}
4 changes: 2 additions & 2 deletions client/mm/mm.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,12 @@ func (m *MarketMaker) loadCEX(ctx context.Context, cfg *CEXConfig) (*centralized
}
c.mkts, err = cex.Markets(ctx)
if err != nil {
m.log.Errorf("Failed to get markets for %s: %w", cfg.Name, err)
m.log.Errorf("Failed to get markets for %s: %v", cfg.Name, err)
c.mkts = make(map[string]*libxc.Market)
c.connectErr = err.Error()
}
if c.balances, err = c.Balances(ctx); err != nil {
m.log.Errorf("Failed to get balances for %s: %w", cfg.Name, err)
m.log.Errorf("Failed to get balances for %s: %v", cfg.Name, err)
c.balances = make(map[uint32]*libxc.ExchangeBalance)
c.connectErr = err.Error()
}
Expand Down

0 comments on commit 1efedb4

Please sign in to comment.