Skip to content

Commit 8320224

Browse files
authoredAug 30, 2024··
.*: revive from unused_parameters (#7577)
1 parent 845f62c commit 8320224

File tree

147 files changed

+426
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+426
-427
lines changed
 

‎balancer/base/balancer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type baseBuilder struct {
3636
config Config
3737
}
3838

39-
func (bb *baseBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer {
39+
func (bb *baseBuilder) Build(cc balancer.ClientConn, _ balancer.BuildOptions) balancer.Balancer {
4040
bal := &baseBalancer{
4141
cc: cc,
4242
pickerBuilder: bb.pickerBuilder,
@@ -259,6 +259,6 @@ type errPicker struct {
259259
err error // Pick() always returns this err.
260260
}
261261

262-
func (p *errPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
262+
func (p *errPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) {
263263
return balancer.PickResult{}, p.err
264264
}

‎balancer/base/balancer_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type testSubConn struct {
4444
updateState func(balancer.SubConnState)
4545
}
4646

47-
func (sc *testSubConn) UpdateAddresses(addresses []resolver.Address) {}
47+
func (sc *testSubConn) UpdateAddresses([]resolver.Address) {}
4848

4949
func (sc *testSubConn) Connect() {}
5050

@@ -88,7 +88,7 @@ func TestBaseBalancerReserveAttributes(t *testing.T) {
8888
}
8989
pickBuilder := &testPickBuilder{validate: v}
9090
b := (&baseBuilder{pickerBuilder: pickBuilder}).Build(&testClientConn{
91-
newSubConn: func(addrs []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) {
91+
newSubConn: func(_ []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) {
9292
return &testSubConn{updateState: opts.StateListener}, nil
9393
},
9494
}, balancer.BuildOptions{}).(*baseBalancer)

0 commit comments

Comments
 (0)