mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

When a watch stream closes, both of the watcher.Chan and closec will be closed. If watcher.Chan is closed, we should not send out the empty event. Sending the empty is wrong and waste a lot of CPU resources. Instead we should just return.