mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
CI/build: Update Go version, linters and fix minor issues (#1473)
* CI/build: Update Go version, linters and fix minor issues * Bump golangci-lint to v1.56.1 * BinanceUS: Make uint usage consistent * Throw blank identifiers into the trash
This commit is contained in:
@@ -893,8 +893,8 @@ func (w *Websocket) GetChannelDifference(genSubs []subscription.Subscription) (s
|
||||
}
|
||||
}
|
||||
|
||||
for _, c := range unsubMap {
|
||||
unsub = append(unsub, c)
|
||||
for x := range unsubMap {
|
||||
unsub = append(unsub, unsubMap[x])
|
||||
}
|
||||
|
||||
return
|
||||
@@ -988,7 +988,7 @@ func (w *Websocket) AddSuccessfulSubscriptions(channels ...subscription.Subscrip
|
||||
if w.subscriptions == nil {
|
||||
w.subscriptions = subscriptionMap{}
|
||||
}
|
||||
for _, cN := range channels {
|
||||
for _, cN := range channels { //nolint:gocritic // See below comment
|
||||
c := cN // cN is an iteration var; Not safe to make a pointer to
|
||||
key := c.EnsureKeyed()
|
||||
c.State = subscription.SubscribedState
|
||||
|
||||
Reference in New Issue
Block a user