@@ -48,10 +48,10 @@ type rlsBalancer struct {
4848 // Mutex protects all the state maintained by the LB policy.
4949 // TODO(easwars): Once we add the cache, we will also have another lock for
5050 // the cache alone.
51- mu sync.Mutex
52- lbCfg * lbConfig // Most recently received service config.
53- rlsCC * grpc.ClientConn // ClientConn to the RLS server.
54- rlsClient * rlsClient // RLS client wrapper.
51+ mu sync.Mutex
52+ lbCfg * lbConfig // Most recently received service config.
53+ rlsCC * grpc.ClientConn // ClientConn to the RLS server.
54+ rlsC * rlsClient // RLS client wrapper.
5555
5656 ccUpdateCh chan * balancer.ClientConnState
5757}
@@ -161,7 +161,7 @@ func (lb *rlsBalancer) updateControlChannel(newCfg *lbConfig) {
161161 // This is the case where only the timeout has changed. We will continue
162162 // to use the existing clientConn. but will create a new rlsClient with
163163 // the new timeout.
164- lb .rlsClient = newRLSClientFunc (lb .rlsCC , lb .opts .Target .Endpoint , timeout )
164+ lb .rlsC = newRLSClientFunc (lb .rlsCC , lb .opts .Target .Endpoint , timeout )
165165 return
166166 }
167167
@@ -185,7 +185,7 @@ func (lb *rlsBalancer) updateControlChannel(newCfg *lbConfig) {
185185 lb .rlsCC .Close ()
186186 }
187187 lb .rlsCC = cc
188- lb .rlsClient = newRLSClientFunc (cc , lb .opts .Target .Endpoint , timeout )
188+ lb .rlsC = newRLSClientFunc (cc , lb .opts .Target .Endpoint , timeout )
189189}
190190
191191func dialCreds (opts balancer.BuildOptions ) grpc.DialOption {
0 commit comments