From e920eaf1f526fbd8d6a65a13ea897c5c4dc96d73 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Tue, 5 Dec 2023 09:26:53 -0800 Subject: [PATCH] comment --- balancer_wrapper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/balancer_wrapper.go b/balancer_wrapper.go index 301aedd32b47..b5e30cff0215 100644 --- a/balancer_wrapper.go +++ b/balancer_wrapper.go @@ -168,9 +168,9 @@ func (ccb *ccBalancerWrapper) buildLoadBalancingPolicy(name string) { ccb.curBalancerName = builder.Name() } -// close initiates async shutdown of the wrapper. To determine the wrapper has -// finished shutting down, the channel should block on ccb.serializer.Done() -// without cc.mu held. +// close initiates async shutdown of the wrapper. cc.mu must be held when +// calling this function. To determine the wrapper has finished shutting down, +// the channel should block on ccb.serializer.Done() without cc.mu held. func (ccb *ccBalancerWrapper) close() { ccb.mu.Lock() ccb.closed = true