From 371811880c2a3b9156abbddb87879645df84b339 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Mon, 15 Oct 2018 10:27:54 -0700 Subject: [PATCH] balancer: add clarifying note to PickOptions.Header (#2377) --- balancer/balancer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/balancer/balancer.go b/balancer/balancer.go index a642b15e..ee1703f0 100644 --- a/balancer/balancer.go +++ b/balancer/balancer.go @@ -155,7 +155,8 @@ type PickOptions struct { // FullMethodName is the method name that NewClientStream() is called // with. The canonical format is /service/Method. FullMethodName string - // Header contains the metadata from the RPC's client header. + // Header contains the metadata from the RPC's client header. The metadata + // should not be modified; make a copy first if needed. Header metadata.MD }