Skip to content

Commit

Permalink
chore: Improve the length limit for make (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 committed Mar 16, 2023
1 parent b2e9dfc commit 852e457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manager.go
Expand Up @@ -16,9 +16,9 @@ type Manager struct {
func New(config *Config) *Manager {
return &Manager{
config: config,
relovedClient: make(map[string]*redis.Client),
relovedCluster: make(map[string]*redis.ClusterClient),
relovedRing: make(map[string]*redis.Ring),
relovedClient: make(map[string]*redis.Client, len(config.ClientConfig.Connections)),
relovedCluster: make(map[string]*redis.ClusterClient, len(config.ClusterConfig.Connections)),
relovedRing: make(map[string]*redis.Ring, len(config.RingConfig.Connections)),
rw: sync.RWMutex{},
}
}
Expand Down

0 comments on commit 852e457

Please sign in to comment.