mirror of https://github.com/hashicorp/consul
actually use the channel
parent
a323375c30
commit
70b54d501f
|
@ -68,7 +68,7 @@ func Sync(ctx context.Context, cfg SyncConfig) {
|
|||
select {
|
||||
case <-stateCh:
|
||||
// Wait for a state change.
|
||||
case <-time.After(cfg.ResyncFrequency):
|
||||
case <-resyncCh:
|
||||
resyncCh = nil
|
||||
case <-ctx.Done():
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue