chore: update linter

This commit is contained in:
Ludovic Fernandez 2024-03-20 10:26:03 +01:00 committed by GitHub
parent fc875b38e0
commit 141abce2d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
118 changed files with 10 additions and 265 deletions

View file

@ -121,13 +121,11 @@ func TestLoadBalancing(t *testing.T) {
}
for _, test := range testCases {
test := test
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
balancer := NewWRRLoadBalancer()
for server, weight := range test.serversWeight {
server := server
balancer.AddWeightServer(HandlerFunc(func(conn WriteCloser) {
_, err := conn.Write([]byte(server))
require.NoError(t, err)