agent/structs: DCSpecificRequest sets all the proper fields for

CacheInfo
This commit is contained in:
Mitchell Hashimoto 2018-04-16 12:28:18 +02:00
parent be873d2558
commit 9f3dbf7b2a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 4 additions and 1 deletions

View File

@ -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