mirror of https://github.com/hashicorp/consul
agent/structs: DCSpecificRequest sets all the proper fields for
CacheInfopull/4275/head
parent
be873d2558
commit
9f3dbf7b2a
|
@ -281,7 +281,10 @@ func (r *DCSpecificRequest) RequestDatacenter() string {
|
||||||
|
|
||||||
func (r *DCSpecificRequest) CacheInfo() cache.RequestInfo {
|
func (r *DCSpecificRequest) CacheInfo() cache.RequestInfo {
|
||||||
info := cache.RequestInfo{
|
info := cache.RequestInfo{
|
||||||
MinIndex: r.QueryOptions.MinQueryIndex,
|
Token: r.Token,
|
||||||
|
Datacenter: r.Datacenter,
|
||||||
|
MinIndex: r.MinQueryIndex,
|
||||||
|
Timeout: r.MaxQueryTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
// To calculate the cache key we only hash the node filters. The
|
// To calculate the cache key we only hash the node filters. The
|
||||||
|
|
Loading…
Reference in New Issue