Skip to content

Commit

Permalink
Bitfinex: Fix hardcoded assetType
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Sep 14, 2023
1 parent f2bcb78 commit 6e0ceb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/bitfinex/bitfinex_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ func (b *Bitfinex) WsUpdateOrderbook(p currency.Pair, assetType asset.Item, book
// resubOrderbook resubscribes the orderbook after a consistency error, probably a failed checksum,
// which forces a fresh snapshot. If we don't do this the orderbook will keep erroring and drifting.
func (b *Bitfinex) resubOrderbook(p currency.Pair, assetType asset.Item) error {
if err := b.Websocket.Orderbook.FlushOrderbook(p, asset.Spot); err != nil {
if err := b.Websocket.Orderbook.FlushOrderbook(p, assetType); err != nil {
return err
}

Expand Down

0 comments on commit 6e0ceb9

Please sign in to comment.