mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
When a grpc watch stream is torn down, it will join on its logical substream goroutines by waiting for each to close a channel. This doesn't guarantee the substream is fully exited, though, but only about to exit and can be waiting to resume even after Watch.Close finishes. Instead, use a waitgroup.Done at the very end of the substream defer. Fixes #7573
19 KiB
19 KiB