actually use the channel

pull/16497/head
R.B. Boyer 2023-03-03 14:03:42 -06:00
parent a323375c30
commit 70b54d501f
1 changed files with 1 additions and 1 deletions

View File

@ -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