From 80673992e6ffabb0bbea74d44cf4bff373e4c2b2 Mon Sep 17 00:00:00 2001 From: Poloskin Valentin Georgievich Date: Sun, 2 Apr 2017 17:10:47 +0300 Subject: [PATCH] gofmt --- cluster.go | 2 +- example_instrumentation_test.go | 2 +- internal/pool/pool.go | 2 +- ring.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cluster.go b/cluster.go index 251214c1..9bc65065 100644 --- a/cluster.go +++ b/cluster.go @@ -650,7 +650,7 @@ func (c *ClusterClient) reaper(idleCheckFrequency time.Duration) { ticker := time.NewTicker(idleCheckFrequency) defer ticker.Stop() - for _ = range ticker.C { + for range ticker.C { nodes, err := c.nodes.All() if err != nil { break diff --git a/example_instrumentation_test.go b/example_instrumentation_test.go index 08fba0bf..02051f9c 100644 --- a/example_instrumentation_test.go +++ b/example_instrumentation_test.go @@ -29,7 +29,7 @@ func wrapRedisProcess(client *redis.Client) { var count, avgDur uint32 go func() { - for _ = range time.Tick(3 * time.Second) { + for range time.Tick(3 * time.Second) { n := atomic.LoadUint32(&count) dur := time.Duration(atomic.LoadUint32(&avgDur)) * precision fmt.Printf("%s: processed=%d avg_dur=%s\n", client, n, dur) diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 1e5fac6f..45743fed 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -319,7 +319,7 @@ func (p *ConnPool) reaper(frequency time.Duration) { ticker := time.NewTicker(frequency) defer ticker.Stop() - for _ = range ticker.C { + for range ticker.C { if p.closed() { break } diff --git a/ring.go b/ring.go index 6b4d77b1..eb5add10 100644 --- a/ring.go +++ b/ring.go @@ -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()