Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Aug 9, 2024
1 parent 586b091 commit 31e8a10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion balancer/pickfirst/pickfirst.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"math/rand"

"google.golang.org/grpc/balancer"
_ "google.golang.org/grpc/balancer/pickfirst_leaf"
_ "google.golang.org/grpc/balancer/pickfirst_leaf" // For automatically registering the new pickfirst if required.
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal"
Expand Down
7 changes: 4 additions & 3 deletions balancer/pickfirst_leaf/pickfirst_leaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ func init() {
var logger = grpclog.Component("pick-first-leaf-lb")

const (
// PickFirstLeafName is the name of the pick_first balancer.
// PickFirstLeafName is the name of the pick_first_leaf balancer.
PickFirstLeafName = "pick_first_leaf"
PickFirstName = "pick_first"
logPrefix = "[pick-first-leaf-lb %p] "
// PickFirstName is the name of the pick_first balancer.
PickFirstName = "pick_first"
logPrefix = "[pick-first-leaf-lb %p] "
)

type pickfirstBuilder struct {
Expand Down

0 comments on commit 31e8a10

Please sign in to comment.