mirror of
https://github.com/rancher/steve.git
synced 2025-06-24 05:57:34 +00:00
lock to avoid panic
This commit is contained in:
parent
139bacf74d
commit
a32064f238
@ -228,7 +228,9 @@ func (h *clusterCache) start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
event := eventObj.(event)
|
event := eventObj.(event)
|
||||||
|
h.RLock()
|
||||||
w := h.watchers[event.gvr]
|
w := h.watchers[event.gvr]
|
||||||
|
h.RUnlock()
|
||||||
if w == nil {
|
if w == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user