818
// When updatedViaWatch is true, we skip adding to stateChangedDuringReadthrough since watch events
819
// trigger callbacks immediately and don't need to be queued for later delivery.
820
>
func (r *registry) updateSingleNamespace(ns *namespace.Namespace, updatedViaWatch bool) bool {
registry.go
821
>
r.nsMapsLock.Lock()
822
>
defer r.nsMapsLock.Unlock()
823
>
824
>
if curEntry, ok := r.idToNamespace[ns.ID()]; ok {
825
if curEntry.NotificationVersion() >= ns.NotificationVersion() {
826
// More up-to-date version already stored