Skip to content

Commit 7a2b789

Browse files
authored
Fix httpEndpointConfig pointer type issue (#1130)
1 parent 947f4b2 commit 7a2b789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/src/gateway_benchmark.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Examples:
149149
if duration > 0 {
150150
durations = append(durations, duration)
151151
}
152-
} else if epConf, ok := clientOrEndpointConfig.(httpEndpointConfig); ok {
152+
} else if epConf, ok := clientOrEndpointConfig.(*httpEndpointConfig); ok {
153153
duration := benchmarkEndpointHTTP(epConf)
154154
if duration > 0 {
155155
durations = append(durations, duration)
@@ -212,7 +212,7 @@ type endpointResult struct {
212212
successful int
213213
}
214214

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

0 commit comments

Comments
 (0)