func (lb *rlsBalancer) handleClientConnUpdate(ccs *balancer.ClientConnState) {
	logger.Infof("rls: service config: %+v", ccs.BalancerConfig)
	lb.mu.Lock()
	defer lb.mu.Unlock()

	if lb.done.HasFired() {
		logger.Warning("rls: received service config after balancer close")
		return
	}

	newCfg := ccs.BalancerConfig.(*lbConfig)
	if lb.lbCfg.Equal(newCfg) {
		logger.Info("rls: new service config matches existing config")
		return
	}

	lb.updateControlChannel(newCfg)
	lb.lbCfg = newCfg
}
// handleClientConnUpdate handles updates to the service config.
// If the RLS server name or the RLS RPC timeout changes, it updates the control
// channel accordingly.
// TODO(easwars): Handle updates to other fields in the service config.
handleClientConnUpdate handles updates to the service config.
If the RLS server name or the RLS RPC timeout changes, it updates the control
channel accordingly.
TODO(easwars): Handle updates to other fields in the service config.
// handleClientConnUpdate handles updates to the service config . // If the RLS server name or the RLS RPC timeout changes it updates the control // channel accordingly . // TODO ( easwars ) : Handle updates to other fields in the service config .
func (lb *rlsBalancer) handleClientConnUpdate(ccs *balancer.ClientConnState) {
	logger.Infof("rls: service config: %+v", ccs.BalancerConfig)
	lb.mu.Lock()
	defer lb.mu.Unlock()
	if lb.done.HasFired() {
		logger.Warning("rls: received service config after balancer close")
		return
	}
	newCfg := ccs.BalancerConfig.(*lbConfig)
	if lb.lbCfg.Equal(newCfg) {
		logger.Info("rls: new service config matches existing config")
		return
	}
	lb.updateControlChannel(newCfg)
	lb.lbCfg = newCfg
}
func ( lb * rlsBalancer ) handleClientConnUpdate ( ccs * balancer . ClientConnState ) { logger . Infof ( " " , ccs . BalancerConfig ) lb . mu . Lock ( ) defer lb . mu . Unlock ( ) if lb . done . HasFired ( ) { logger . Warning ( " " ) return } newCfg := ccs . BalancerConfig . ( * lbConfig ) if lb . lbCfg . Equal ( newCfg ) { logger . Info ( " " ) return } lb . updateControlChannel ( newCfg ) lb . lbCfg = newCfg }
handleClientConnUpdate handles updates to the service config.
handleClientConnUpdate handles updates to the service config .