switch balancer based on service config info (#1670)
This commit is contained in:
@ -56,7 +56,7 @@ func (*rrBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balan
|
||||
}
|
||||
|
||||
func (*rrBuilder) Name() string {
|
||||
return "roundrobin"
|
||||
return "round_robin"
|
||||
}
|
||||
|
||||
type rrBalancer struct {
|
||||
|
||||
@ -37,7 +37,7 @@ import (
|
||||
"google.golang.org/grpc/test/leakcheck"
|
||||
)
|
||||
|
||||
var rr = balancer.Get("roundrobin")
|
||||
var rr = balancer.Get("round_robin")
|
||||
|
||||
type testServer struct {
|
||||
testpb.TestServiceServer
|
||||
|
||||
Reference in New Issue
Block a user