File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import (
2626 "math/rand"
2727
2828 "google.golang.org/grpc/balancer"
29- _ "google.golang.org/grpc/balancer/pickfirst_leaf"
29+ _ "google.golang.org/grpc/balancer/pickfirst_leaf" // For automatically registering the new pickfirst if required.
3030 "google.golang.org/grpc/connectivity"
3131 "google.golang.org/grpc/grpclog"
3232 "google.golang.org/grpc/internal"
Original file line number Diff line number Diff line change @@ -51,10 +51,11 @@ func init() {
5151var logger = grpclog .Component ("pick-first-leaf-lb" )
5252
5353const (
54- // PickFirstLeafName is the name of the pick_first balancer.
54+ // PickFirstLeafName is the name of the pick_first_leaf balancer.
5555 PickFirstLeafName = "pick_first_leaf"
56- PickFirstName = "pick_first"
57- logPrefix = "[pick-first-leaf-lb %p] "
56+ // PickFirstName is the name of the pick_first balancer.
57+ PickFirstName = "pick_first"
58+ logPrefix = "[pick-first-leaf-lb %p] "
5859)
5960
6061type pickfirstBuilder struct {
You can’t perform that action at this time.
0 commit comments