feat: linting fixes
This commit is contained in:
parent
c2101a4fbb
commit
82c9581727
@ -1,8 +1,9 @@
|
|||||||
package proxyd
|
package proxyd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStripXFF(t *testing.T) {
|
func TestStripXFF(t *testing.T) {
|
||||||
|
@ -115,6 +115,7 @@ func StartPProf(hostname string, port int) *http.Server {
|
|||||||
Addr: addr,
|
Addr: addr,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:errcheck
|
||||||
go srv.ListenAndServe()
|
go srv.ListenAndServe()
|
||||||
|
|
||||||
return srv
|
return srv
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
package proxyd
|
package proxyd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/require"
|
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLimitReader(t *testing.T) {
|
func TestLimitReader(t *testing.T) {
|
||||||
|
@ -573,7 +573,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
|
|||||||
}
|
}
|
||||||
|
|
||||||
servedByString := ""
|
servedByString := ""
|
||||||
for sb, _ := range servedBy {
|
for sb := range servedBy {
|
||||||
if servedByString != "" {
|
if servedByString != "" {
|
||||||
servedByString += ", "
|
servedByString += ", "
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user