From bfb5297b3b3589b2e125c2b4f6e1ed14517597c2 Mon Sep 17 00:00:00 2001 From: krhitesh7 Date: Sat, 28 Sep 2024 10:12:42 +0530 Subject: [PATCH] Remove comment --- pkg/cache/v3/simple.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cache/v3/simple.go b/pkg/cache/v3/simple.go index 38218d752c..1386ddbc5b 100644 --- a/pkg/cache/v3/simple.go +++ b/pkg/cache/v3/simple.go @@ -930,9 +930,8 @@ func (cache *snapshotCache) CreateDeltaWatch(request *DeltaRequest, state stream delayedResponse := !exists if exists { hasResources := false - resources := snapshot.GetResources(request.GetTypeUrl()) + resources := snapshot.GetResourcesAndTTL(request.GetTypeUrl()) hasResources = resources != nil && len(resources) > 0 - fmt.Printf(fmt.Sprintf("hasResources for %s hasResources=%v\n", request.GetTypeUrl(), hasResources)) if hasResources { err := snapshot.ConstructVersionMap() if err != nil {