diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-03-02 17:19:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 16:19:05 +0100 |
commit | 3166afd835a00486c918f1d3149696855897c923 (patch) | |
tree | 9ba64d0f8f16688512cf83a77787f70b0f56b81c /client_timing_test.go | |
parent | chore(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#1725) (diff) | |
download | fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.gz fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.bz2 fasthttp-3166afd835a00486c918f1d3149696855897c923.zip |
Enable few gocritic checks; fix up issues (#1728)
Diffstat (limited to 'client_timing_test.go')
-rw-r--r-- | client_timing_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client_timing_test.go b/client_timing_test.go index 416ad53..5e9a2f4 100644 --- a/client_timing_test.go +++ b/client_timing_test.go @@ -165,7 +165,7 @@ func BenchmarkNetHTTPClientDoFastServer(b *testing.B) { nn := uint32(0) b.RunParallel(func(pb *testing.PB) { - req, err := http.NewRequest(MethodGet, fmt.Sprintf("http://foobar%d.com/aaa/bbb", atomic.AddUint32(&nn, 1)), nil) + req, err := http.NewRequest(MethodGet, fmt.Sprintf("http://foobar%d.com/aaa/bbb", atomic.AddUint32(&nn, 1)), http.NoBody) if err != nil { b.Fatalf("unexpected error: %v", err) } @@ -550,7 +550,7 @@ func benchmarkNetHTTPClientEndToEndBigResponseInmemory(b *testing.B, parallelism url := "http://unused.host" + requestURI b.SetParallelism(parallelism) b.RunParallel(func(pb *testing.PB) { - req, err := http.NewRequest(MethodGet, url, nil) + req, err := http.NewRequest(MethodGet, url, http.NoBody) if err != nil { b.Fatalf("unexpected error: %v", err) } |