Skip to content

Commit

Permalink
Merge pull request #13 from ShareChat/xds-cache
Browse files Browse the repository at this point in the history
Remove comment
  • Loading branch information
krhitesh7 authored Sep 28, 2024
2 parents aa7147e + bfb5297 commit 76942a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cache/v3/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 76942a1

Please sign in to comment.