Skip to content

Commit

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

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

if delayedResponse {
Expand Down

0 comments on commit 302db05

Please sign in to comment.