1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

fix style to match gofmt

Signed-off-by: JChien <jeffchien13@gmail.com>
This commit is contained in:
JChien
2014-12-18 00:11:25 +08:00
committed by Victor Vieux
parent e0461c7549
commit 6aed8aa673

View File

@@ -65,7 +65,9 @@ func (s *ConsulDiscoveryService) Fetch() ([]*discovery.Node, error) {
}
func (s *ConsulDiscoveryService) Watch(callback discovery.WatchCallback) {
for _ = range time.Tick(time.Duration(s.heartbeat) * time.Second) {
c := time.Tick(time.Duration(s.heartbeat) * time.Second)
for {
<-c
nodes, err := s.Fetch()
if err == nil {
callback(nodes)