From d8ca92c2af35b5119d06ababc062c07976e60ee0 Mon Sep 17 00:00:00 2001 From: Steve Strugnell Date: Mon, 27 May 2024 18:07:02 +1200 Subject: [PATCH] Fix unused parameters (linter) --- config/confighttp/ratelimit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/confighttp/ratelimit_test.go b/config/confighttp/ratelimit_test.go index 4b10e3cc8f9..37643463034 100644 --- a/config/confighttp/ratelimit_test.go +++ b/config/confighttp/ratelimit_test.go @@ -35,7 +35,7 @@ func TestServerRateLimit(t *testing.T) { } var handlerCalled bool - handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + handler := http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) { handlerCalled = true }) @@ -78,7 +78,7 @@ func TestRejectedServerRateLimit(t *testing.T) { }, } - srv, err := hss.ToServer(context.Background(), host, componenttest.NewNopTelemetrySettings(), http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})) + srv, err := hss.ToServer(context.Background(), host, componenttest.NewNopTelemetrySettings(), http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {})) require.NoError(t, err) // test