Skip to content

Commit b90e96a

Browse files
authored
chore: remove not used param (#944)
1 parent 89eeb9b commit b90e96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch_benchmark_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (t *FakeTransport) RoundTrip(req *http.Request) (*http.Response, error) {
5151
return t.FakeResponse, nil
5252
}
5353

54-
func newFakeTransport(b *testing.B) *FakeTransport {
54+
func newFakeTransport() *FakeTransport {
5555
return &FakeTransport{FakeResponse: &defaultResponse}
5656
}
5757

@@ -76,7 +76,7 @@ func BenchmarkClientAPI(b *testing.B) {
7676

7777
client, err := elasticsearch.NewClient(elasticsearch.Config{
7878
Addresses: []string{"http://localhost:9200"},
79-
Transport: newFakeTransport(b),
79+
Transport: newFakeTransport(),
8080
})
8181
if err != nil {
8282
b.Fatalf("ERROR: %s", err)

0 commit comments

Comments
 (0)