mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Merge pull request #19617 from hongchaodeng/watch_cache
small refactor on watch cache
This commit is contained in:
@@ -166,8 +166,6 @@ func (w *watchCache) processEvent(event watch.Event, resourceVersion uint64, upd
|
|||||||
var prevObject runtime.Object
|
var prevObject runtime.Object
|
||||||
if exists {
|
if exists {
|
||||||
prevObject = previous.(runtime.Object)
|
prevObject = previous.(runtime.Object)
|
||||||
} else {
|
|
||||||
prevObject = nil
|
|
||||||
}
|
}
|
||||||
watchCacheEvent := watchCacheEvent{event.Type, event.Object, prevObject}
|
watchCacheEvent := watchCacheEvent{event.Type, event.Object, prevObject}
|
||||||
if w.onEvent != nil {
|
if w.onEvent != nil {
|
||||||
|
Reference in New Issue
Block a user