From ccbe86d7a8a55a5eabe71c4357ea0725ce56c48e Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Fri, 1 Jul 2016 11:50:30 -0700 Subject: [PATCH] consul: mention magic _agent token in struct comments --- consul/structs/prepared_query.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/structs/prepared_query.go b/consul/structs/prepared_query.go index 667754493..5e9c31847 100644 --- a/consul/structs/prepared_query.go +++ b/consul/structs/prepared_query.go @@ -36,7 +36,8 @@ type ServiceQuery struct { // Near allows the query to always prefer the node nearest the given // node. If the node does not exist, results are returned in their - // normal randomly-shuffled order. + // normal randomly-shuffled order. Supplying the magic "_agent" value + // is supported to sort near the agent which initiated the request. Near string // Tags are a set of required and/or disallowed tags. If a tag is in