Skip to content

Commit

Permalink
Fix httpEndpointConfig pointer type issue (#1130)
Browse files Browse the repository at this point in the history
vdavid authored Dec 6, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 947f4b2 commit 7a2b789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/src/gateway_benchmark.go
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ Examples:
if duration > 0 {
durations = append(durations, duration)
}
} else if epConf, ok := clientOrEndpointConfig.(httpEndpointConfig); ok {
} else if epConf, ok := clientOrEndpointConfig.(*httpEndpointConfig); ok {
duration := benchmarkEndpointHTTP(epConf)
if duration > 0 {
durations = append(durations, duration)
@@ -212,7 +212,7 @@ type endpointResult struct {
successful int
}

func benchmarkEndpointHTTP(epConfig httpEndpointConfig) time.Duration {
func benchmarkEndpointHTTP(epConfig *httpEndpointConfig) time.Duration {
start := time.Now()
resp, err := epConfig.client.Post(epConfig.url, "application/json", strings.NewReader("ping"))
if err != nil {

0 comments on commit 7a2b789

Please sign in to comment.