mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 23:16:54 +00:00
golangci-lint/CI: Bump versions and introduce new linters (#798)
* golangci-lint/CI: Bump versions
Fix remaining linter issues
* Specifically set AppVeyor version
* Fix the infamous typos 👀
* Add go env cmd to AppVeyor
* Add go version cmd to AppVeyor
* Specify AppVeyor image, adjust linters
* Update go get to go install due to deprecation
* Bump golangci-lint timeout time for AppVeyor
* Change NW contract to NQ
* Address nitters
* GetRandomPair -> Pair{}
* Address nits
* Address time nitterinos plus additional tweaks
* More time inception upgrades!
* Bending time and space
This commit is contained in:
@@ -432,7 +432,10 @@ func (c *CoinbasePro) UpdateOrderbook(ctx context.Context, p currency.Pair, asse
|
||||
return book, err
|
||||
}
|
||||
|
||||
obNew := orderbookNew.(OrderbookL1L2)
|
||||
obNew, ok := orderbookNew.(OrderbookL1L2)
|
||||
if !ok {
|
||||
return book, errors.New("unable to type assert orderbook data")
|
||||
}
|
||||
for x := range obNew.Bids {
|
||||
book.Bids = append(book.Bids, orderbook.Item{
|
||||
Amount: obNew.Bids[x].Amount,
|
||||
|
||||
Reference in New Issue
Block a user