1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00
This commit is contained in:
Poloskin Valentin Georgievich
2017-04-02 17:10:47 +03:00
parent c86c158b1f
commit 80673992e6
4 changed files with 4 additions and 4 deletions

View File

@ -302,7 +302,7 @@ func (c *Ring) rebalance() {
func (c *Ring) heartbeat() {
ticker := time.NewTicker(c.opt.HeartbeatFrequency)
defer ticker.Stop()
for _ = range ticker.C {
for range ticker.C {
var rebalance bool
c.mu.RLock()