mirror of
https://github.com/rancher/steve.git
synced 2025-09-02 07:55:31 +00:00
lock to avoid panic
This commit is contained in:
@@ -228,7 +228,9 @@ func (h *clusterCache) start() {
|
||||
}
|
||||
|
||||
event := eventObj.(event)
|
||||
h.RLock()
|
||||
w := h.watchers[event.gvr]
|
||||
h.RUnlock()
|
||||
if w == nil {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user