Skip to content

Commit 026ac42

Browse files
committed
rename withHttpClient
1 parent 456596e commit 026ac42

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
@@ -270,8 +270,8 @@ func WithCloudFetch(useCloudFetch bool) ConnOption {
270270
}
271271
}
272272

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

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)