mirror of https://github.com/docker/docs.git
Add call to SyncCluster at etcd client initialization
Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
parent
54dfabd252
commit
959bd0adbb
|
|
@ -34,6 +34,8 @@ func InitializeEtcd(addrs []string, options Config) (Store, error) {
|
||||||
s.setTimeout(options.Timeout)
|
s.setTimeout(options.Timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME sync on each operation?
|
||||||
|
s.client.SyncCluster()
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue