Skip to content

Commit 31e8a10

Browse files
committed
Fix lint error
1 parent 586b091 commit 31e8a10

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

balancer/pickfirst/pickfirst.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

balancer/pickfirst_leaf/pickfirst_leaf.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ func init() {
5151
var logger = grpclog.Component("pick-first-leaf-lb")
5252

5353
const (
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

6061
type pickfirstBuilder struct {

0 commit comments

Comments
 (0)