Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
krhitesh7 committed Oct 15, 2024
1 parent 1dae40c commit 84b6a3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/cache/v3/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,10 +956,7 @@ func (cache *snapshotCache) CreateDeltaWatch(request *DeltaRequest, state stream
cache.log.Errorf("failed to respond with delta response: %s", err)
}

if snapshot.GetResourcesAndTTL(request.GetTypeUrl()) != nil {
delayedResponse = len(snapshot.GetResourcesAndTTL(request.GetTypeUrl())) == 0
}
delayedResponse = response == nil
delayedResponse = (response == nil) || (snapshot.GetResourcesAndTTL(request.GetTypeUrl()) != nil && len(snapshot.GetResourcesAndTTL(request.GetTypeUrl())) == 0)
}

if delayedResponse {
Expand Down

0 comments on commit 84b6a3e

Please sign in to comment.