(c balancer.ClientConnState)
| 103 | } |
| 104 | |
| 105 | func (b *bal) UpdateClientConnState(c balancer.ClientConnState) error { |
| 106 | cfg, ok := c.BalancerConfig.(*RLSChildPolicyConfig) |
| 107 | if !ok { |
| 108 | return fmt.Errorf("received balancer config of type %T, want %T", c.BalancerConfig, &RLSChildPolicyConfig{}) |
| 109 | } |
| 110 | if b.bf != nil && b.bf.UpdateClientConnState != nil { |
| 111 | b.bf.UpdateClientConnState(cfg) |
| 112 | } |
| 113 | return b.Balancer.UpdateClientConnState(balancer.ClientConnState{ |
| 114 | ResolverState: resolver.State{Addresses: []resolver.Address{{Addr: cfg.Backend}}}, |
| 115 | }) |
| 116 | } |
| 117 | |
| 118 | func (b *bal) Close() { |
| 119 | b.Balancer.Close() |
nothing calls this directly
no test coverage detected