From 931c6616f084266ddf8a555a51220cb1a4dfb7bb Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Fri, 24 Jan 2025 15:04:06 +0530 Subject: [PATCH] Add comment --- balancer/balancer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/balancer/balancer.go b/balancer/balancer.go index 988f77fc13ad..0472dc4cd98e 100644 --- a/balancer/balancer.go +++ b/balancer/balancer.go @@ -170,7 +170,8 @@ type ClientConn interface { // MetricsRecorder provides the metrics recorder that balancers can use to // record metrics. Balancer implementations which do not register metrics on - // metrics registry and record on them can ignore this method. + // metrics registry and record on them can ignore this method. The returned + // MetricsRecorder is guaranteed to never be nil. MetricsRecorder() estats.MetricsRecorder }