Skip to content

Commit

Permalink
Bitfinex: WIP
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
gbjk committed Sep 14, 2023
1 parent ee702ba commit 9492412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exchanges/bitfinex/bitfinex_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,11 @@ func (b *Bitfinex) handleWSEvent(respRaw []byte) error {
// TODO - Send a better value down the channel
b.Websocket.DataHandler <- glob
} else {
errCode, err := jsonparser.GetString(respRaw, "code")
errCode, err := jsonparser.GetInt(respRaw, "code")
if err != nil {
log.Errorf(log.ExchangeSys, "%s error parsing WS auth event error code: %s", b.Name, err)
}
return fmt.Errorf("WS auth subscription error; Status: %s Error Code: %s", status, errCode)
return fmt.Errorf("WS auth subscription error; Status: %s Error Code: %d", status, errCode)
}
default:
return fmt.Errorf("unknown WS event msg: %s", respRaw)
Expand Down

0 comments on commit 9492412

Please sign in to comment.