Skip to content

Commit 64be203

Browse files
authored
grpc: Readd pick first name (#7336) (#7341)
1 parent 25e33a6 commit 64be203

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clientconn.go

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131

3232
"google.golang.org/grpc/balancer"
3333
"google.golang.org/grpc/balancer/base"
34+
"google.golang.org/grpc/balancer/pickfirst"
3435
"google.golang.org/grpc/codes"
3536
"google.golang.org/grpc/connectivity"
3637
"google.golang.org/grpc/internal"
@@ -72,6 +73,8 @@ var (
7273
// invalidDefaultServiceConfigErrPrefix is used to prefix the json parsing error for the default
7374
// service config.
7475
invalidDefaultServiceConfigErrPrefix = "grpc: the provided default service config is invalid"
76+
// PickFirstBalancerName is the name of the pick_first balancer.
77+
PickFirstBalancerName = pickfirst.Name
7578
)
7679

7780
// The following errors are returned from Dial and DialContext

0 commit comments

Comments
 (0)