mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add golangci-lint
This commit is contained in:
@ -307,6 +307,7 @@ func (c *clusterNodes) NextGeneration() uint32 {
|
||||
|
||||
// GC removes unused nodes.
|
||||
func (c *clusterNodes) GC(generation uint32) {
|
||||
//nolint:prealloc
|
||||
var collected []*clusterNode
|
||||
c.mu.Lock()
|
||||
for addr, node := range c.allNodes {
|
||||
@ -651,8 +652,8 @@ type clusterClient struct {
|
||||
|
||||
opt *ClusterOptions
|
||||
nodes *clusterNodes
|
||||
state *clusterStateHolder
|
||||
cmdsInfoCache *cmdsInfoCache
|
||||
state *clusterStateHolder //nolint:structcheck
|
||||
cmdsInfoCache *cmdsInfoCache //nolint:structcheck
|
||||
}
|
||||
|
||||
// ClusterClient is a Redis Cluster client representing a pool of zero
|
||||
|
Reference in New Issue
Block a user