mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
health: use streaming, even when cache=1 is not set
This commit is contained in:
parent
8bd1a2cd16
commit
a62dcc9bfe
@ -219,8 +219,8 @@ func (s *HTTPHandlers) healthServiceNodes(resp http.ResponseWriter, req *http.Re
|
|||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle this for all endpoints in parseConsistency
|
useStreaming := s.agent.config.CacheUseStreamingBackend && args.MinQueryIndex > 0
|
||||||
args.QueryOptions.UseCache = s.agent.config.HTTPUseCache && args.QueryOptions.UseCache
|
args.QueryOptions.UseCache = s.agent.config.HTTPUseCache && (args.QueryOptions.UseCache || useStreaming)
|
||||||
|
|
||||||
out, md, err := s.agent.rpcClientHealth.ServiceNodes(req.Context(), args)
|
out, md, err := s.agent.rpcClientHealth.ServiceNodes(req.Context(), args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user