Skip to content

Commit 35320c6

Browse files
committed
rename withHttpClient
1 parent 9f722b0 commit 35320c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

connector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ func WithCloudFetch(useCloudFetch bool) ConnOption {
269269
}
270270
}
271271

272-
// WithCloudFetchHTTPClient allows a custom http client to be used for cloud fetch. Default is http.DefaultClient.
273-
func WithCloudFetchHTTPClient(httpClient *http.Client) ConnOption {
272+
// WithHTTPClient allows a custom http client to be used for cloud fetch. Default is http.DefaultClient.
273+
func WithHTTPClient(httpClient *http.Client) ConnOption {
274274
return func(c *config.Config) {
275275
c.UserConfig.CloudFetchConfig.HTTPClient = httpClient
276276
}

connector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func TestNewConnector(t *testing.T) {
257257
WithServerHostname(host),
258258
WithAccessToken(accessToken),
259259
WithHTTPPath(httpPath),
260-
WithCloudFetchHTTPClient(customClient),
260+
WithHTTPClient(customClient),
261261
)
262262
assert.Nil(t, err)
263263

0 commit comments

Comments
 (0)