// If we unsubscribe from wildcard resource, drop all the resources that came from wildcard from
// cache. Also drop the ambiguous resources - we aren't interested in those, but we didn't know if
// Not having sent any requests yet counts as an "update pending" since you're supposed to resend
// So there are no new names and we are interested in nothing. This may either mean that we want
// At this point, we have no changes in subscription resources and this isn't a first request in
// because even if it's empty, it won't be interpreted as legacy wildcard subscription, which can
// only for the first request in the stream. So sending an empty request at this point should be
// We *always* copy the response's nonce into the next request, even if we're going to make that
return !maybe_resource->isWaitingForServer() && resource.version() == maybe_resource->version();
// In theory we should move the ambiguous resource to wildcard, because probably we shouldn't be
// So, leave the version map entry present but blank if we are still interested in the resource.
ENVOY_LOG(debug, "Delta config for {} accepted with {} resources added, {} removed", type_url_,
watch_map_.onConfigUpdateFailed(Envoy::Config::ConfigUpdateFailureReason::UpdateRejected, &e);
watch_map_.onConfigUpdateFailed(Envoy::Config::ConfigUpdateFailureReason::ConnectionFailure,
// something in the past. We could still be in the situation now that all we are subscribed to now
// If our subscription interest didn't change then the first condition for using legacy wildcard