mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-03 10:37:21 +09:00
The Watch goroutine never closed the events channel it owns, and ProxyWatcher.Stop does not close the channel it proxies. When the backing watcher ended, consumers ranging over ResultChan blocked until their own timeout instead of seeing end-of-stream. Closing the channel on goroutine exit matches the watch.Interface contract and the pattern already used by the tenantmodule and application registries. Goroutine-termination tests now assert the result channel closes. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>