| 7198 | type triggerRPCBlockPickerBalancerBuilder struct{} |
| 7199 | |
| 7200 | func (triggerRPCBlockPickerBalancerBuilder) Build(cc balancer.ClientConn, bOpts balancer.BuildOptions) balancer.Balancer { |
| 7201 | b := &triggerRPCBlockBalancer{ |
| 7202 | blockingPickerDone: grpcsync.NewEvent(), |
| 7203 | ClientConn: cc, |
| 7204 | } |
| 7205 | // round_robin child to complete balancer tree with a usable leaf policy and |
| 7206 | // have RPCs actually work. |
| 7207 | builder := balancer.Get(roundrobin.Name) |
| 7208 | rr := builder.Build(b, bOpts) |
| 7209 | if rr == nil { |
| 7210 | panic("round robin builder returned nil") |
| 7211 | } |
| 7212 | b.Balancer = rr |
| 7213 | return b |
| 7214 | } |
| 7215 | |
| 7216 | func (triggerRPCBlockPickerBalancerBuilder) ParseConfig(json.RawMessage) (serviceconfig.LoadBalancingConfig, error) { |
| 7217 | return &bpbConfig{}, nil |