mirror of https://github.com/status-im/consul.git
agent/structs: DCSpecificRequest sets all the proper fields for
CacheInfo
This commit is contained in:
parent
be873d2558
commit
9f3dbf7b2a
|
@ -281,7 +281,10 @@ func (r *DCSpecificRequest) RequestDatacenter() string {
|
|||
|
||||
func (r *DCSpecificRequest) CacheInfo() 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
|
||||
|
|
Loading…
Reference in New Issue