feat: linting fixes

This commit is contained in:
Jacob Elias 2024-06-11 14:34:44 -05:00
parent c2101a4fbb
commit 82c9581727
4 changed files with 6 additions and 3 deletions

@ -1,8 +1,9 @@
package proxyd
import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/stretchr/testify/assert"
)
func TestStripXFF(t *testing.T) {

@ -115,6 +115,7 @@ func StartPProf(hostname string, port int) *http.Server {
Addr: addr,
}
// nolint:errcheck
go srv.ListenAndServe()
return srv

@ -1,10 +1,11 @@
package proxyd
import (
"github.com/stretchr/testify/require"
"io"
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func TestLimitReader(t *testing.T) {

@ -573,7 +573,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
}
servedByString := ""
for sb, _ := range servedBy {
for sb := range servedBy {
if servedByString != "" {
servedByString += ", "
}