mirror of https://github.com/hashicorp/consul
Actually block when syncing subscriptions (#13066)
By changing to use WatchCtx we will actually block for changes to the peering list. WatchCh creates a goroutine to collect errors from WatchCtx and returns immediately. The existing behavior wouldn't result in a tight loop because of the rate limiting in the surrounding function, but it would still lead to more work than is necessary.ua-test/conflict-1
parent
0fa5e7be5a
commit
e874b860c0
Loading…
Reference in new issue