Skip to content

Commit de3b009

Browse files
authored
Removed unused function SetDS from some clients (#507)
1 parent 5df3e64 commit de3b009

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

balancer/pkg/client.go

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ func (c BalancerClient) DistributionIsDefault() bool {
3838
return true
3939
}
4040

41-
func (c BalancerClient) SetDS(_ string) {}
42-
4341
func (c BalancerClient) ID() uint {
4442
return 0x123456789
4543
}

router/client/client.go

-4
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,6 @@ func (f FakeClient) DistributionIsDefault() bool {
10171017
return true
10181018
}
10191019

1020-
func (c FakeClient) SetDS(_ string) {}
1021-
10221020
func NewFakeClient() *FakeClient {
10231021
return &FakeClient{}
10241022
}
@@ -1082,8 +1080,6 @@ func (c NoopClient) DistributionIsDefault() bool {
10821080
return true
10831081
}
10841082

1085-
func (c NoopClient) SetDS(_ string) {}
1086-
10871083
func (c NoopClient) RAddr() string {
10881084
return c.rAddr
10891085
}

0 commit comments

Comments
 (0)