Commit e2179aa9 authored by Will Andrews's avatar Will Andrews Committed by Brad Davidson

Update pkg/cluster/managed.go

parent 3ec086f6
...@@ -136,7 +136,7 @@ func (c *Cluster) setupEtcdProxy(ctx context.Context, etcdProxy etcd.Proxy) { ...@@ -136,7 +136,7 @@ func (c *Cluster) setupEtcdProxy(ctx context.Context, etcdProxy etcd.Proxy) {
return return
} }
// We use Poll here instead of Until because we want to wait the interval before running the function. // We use Poll here instead of Until because we want to wait the interval before running the function.
go wait.PollUntilContextCancel(ctx, 30*time.Second, true, func(ctx context.Context) (bool, error) { go wait.PollUntilContextCancel(ctx, 30*time.Second, false, func(ctx context.Context) (bool, error) {
clientURLs, err := c.managedDB.GetMembersClientURLs(ctx) clientURLs, err := c.managedDB.GetMembersClientURLs(ctx)
if err != nil { if err != nil {
logrus.Warnf("Failed to get etcd ClientURLs: %v", err) logrus.Warnf("Failed to get etcd ClientURLs: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment