Skip to content

Commit

Permalink
chore: remove not used param
Browse files Browse the repository at this point in the history
  • Loading branch information
barkhayot committed Dec 21, 2024
1 parent 1772a6b commit 29509b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (t *FakeTransport) RoundTrip(req *http.Request) (*http.Response, error) {
return t.FakeResponse, nil
}

func newFakeTransport(b *testing.B) *FakeTransport {
func newFakeTransport() *FakeTransport {
return &FakeTransport{FakeResponse: &defaultResponse}
}

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

client, err := elasticsearch.NewClient(elasticsearch.Config{
Addresses: []string{"http://localhost:9200"},
Transport: newFakeTransport(b),
Transport: newFakeTransport(),
})
if err != nil {
b.Fatalf("ERROR: %s", err)
Expand Down

0 comments on commit 29509b8

Please sign in to comment.