Skip to content

Commit

Permalink
remove unnecessary globals
Browse files Browse the repository at this point in the history
  • Loading branch information
demmer committed May 21, 2024
1 parent 60dc5df commit 94197b5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions go/vt/vtgateproxy/firstready_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,12 @@ import (

"google.golang.org/grpc/balancer"
"google.golang.org/grpc/balancer/base"
"google.golang.org/grpc/grpclog"
"vitess.io/vitess/go/vt/log"
)

// Name is the name of first_ready balancer.
const Name = "first_ready"

var logger = grpclog.Component("firstready")

// newBuilder creates a new first_ready balancer builder.
func newBuilder() balancer.Builder {
return base.NewBalancerBuilder(Name, &frPickerBuilder{}, base.Config{HealthCheck: true})
return base.NewBalancerBuilder("first_ready", &frPickerBuilder{}, base.Config{HealthCheck: true})
}

func init() {
Expand Down

0 comments on commit 94197b5

Please sign in to comment.