switch balancer based on service config info (#1670)

This commit is contained in:
lyuxuan
2017-11-17 11:11:05 -08:00
committed by GitHub
parent 816fa5b06f
commit d6cc72862b
6 changed files with 15 additions and 14 deletions

View File

@ -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 {

View File

@ -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