open-consul/agent/rpc/peering
Freddy 160acdf876
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.
2022-05-12 17:36:14 -06:00
..
service.go peering: add TrustBundleListByService endpoint (#13048) 2022-05-12 15:58:22 -07:00
service_oss_test.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
service_test.go peering: add TrustBundleListByService endpoint (#13048) 2022-05-12 15:58:22 -07:00
stream_test.go [OSS] Add upsert handling for receiving CheckServiceNode (#13061) 2022-05-12 15:04:44 -06:00
stream_tracker.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
stream_tracker_test.go add general runstep test helper instead of copying it all over the place (#13013) 2022-05-10 15:25:51 -05:00
subscription_manager.go Actually block when syncing subscriptions (#13066) 2022-05-12 17:36:14 -06:00
subscription_manager_test.go add general runstep test helper instead of copying it all over the place (#13013) 2022-05-10 15:25:51 -05:00
subscription_view.go [OSS] Add upsert handling for receiving CheckServiceNode (#13061) 2022-05-12 15:04:44 -06:00
subscription_view_test.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
testing.go [OSS] Add upsert handling for receiving CheckServiceNode (#13061) 2022-05-12 15:04:44 -06:00
testutil_oss_test.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
validate.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
validate_test.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00