Skip to content

Commit

Permalink
make vet happy
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans authored Sep 10, 2024
1 parent b7728c0 commit 842c3d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xds/internal/balancer/clusterimpl/balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,14 +842,14 @@ func (s) TestChildPolicyUpdatedOnConfigUpdate(t *testing.T) {
)

stub.Register(childPolicyName1, stub.BalancerFuncs{
UpdateClientConnState: func(bd *stub.BalancerData, ccs balancer.ClientConnState) error {
UpdateClientConnState: func(_ *stub.BalancerData, _ balancer.ClientConnState) error {
updatedChildPolicy = childPolicyName1
return nil
},
})

stub.Register(childPolicyName2, stub.BalancerFuncs{
UpdateClientConnState: func(bd *stub.BalancerData, ccs balancer.ClientConnState) error {
UpdateClientConnState: func(_ *stub.BalancerData, _ balancer.ClientConnState) error {
updatedChildPolicy = childPolicyName2
return nil
},
Expand Down Expand Up @@ -904,7 +904,7 @@ func (s) TestFailedToParseChildPolicyConfig(t *testing.T) {
const parseConfigError = "failed to parse config"
const childPolicyName = "stubBalancer-FailedToParseChildPolicyConfig"
stub.Register(childPolicyName, stub.BalancerFuncs{
ParseConfig: func(lbCfg json.RawMessage) (serviceconfig.LoadBalancingConfig, error) {
ParseConfig: func(_ json.RawMessage) (serviceconfig.LoadBalancingConfig, error) {
return nil, errors.New(parseConfigError)
},
})
Expand Down

0 comments on commit 842c3d8

Please sign in to comment.