You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current implementation there can be race conditions for both the methods if client object is shared between go-routines.
Even if client object is segregated race conditions can occur since WatchCh() method starts a separate go-routine that runs watch(). If the main go-routine calls Close() while watch() is running this can cause panic.
Also need to look at creation of client, it looks like it doesn't handshake with .WATCH rather with command, might need to fix.