Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhipsa20 committed Sep 24, 2024
1 parent f566877 commit f3b8f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cache/v3/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,14 @@ func (cache *snapshotCache) UpdateVirtualHosts(ctx context.Context, _ string, ty
currentVersion := cache.ParseSystemVersionInfo(prevResources.Version)

for k, v := range prevResources.Items {
_, ok := r[k]
_, ok := resourcesUpserted[k]
if newResources && !ok {
prevResources.Items[k] = v
} else if !newResources && !ok {
delete(prevResources.Items, k)
}
}
for k, v := range r {
for k, v := range resourcesUpserted {
_, ok := prevResources.Items[k]
if !ok {
prevResources.Items[k] = *v
Expand Down

0 comments on commit f3b8f52

Please sign in to comment.