Skip to content

Commit 644d6da

Browse files
authored
enable cloud fetch by default (#260)
1 parent 6d53e55 commit 644d6da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

connector_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func TestNewConnector(t *testing.T) {
8989
WithHTTPPath(httpPath),
9090
)
9191
expectedCloudFetchConfig := config.CloudFetchConfig{
92-
UseCloudFetch: false,
92+
UseCloudFetch: true,
9393
MaxDownloadThreads: 10,
9494
MaxFilesInMemory: 10,
9595
MinTimeToExpiry: 0 * time.Second,
@@ -130,7 +130,7 @@ func TestNewConnector(t *testing.T) {
130130
WithRetries(-1, 0, 0),
131131
)
132132
expectedCloudFetchConfig := config.CloudFetchConfig{
133-
UseCloudFetch: false,
133+
UseCloudFetch: true,
134134
MaxDownloadThreads: 10,
135135
MaxFilesInMemory: 10,
136136
MinTimeToExpiry: 0 * time.Second,

internal/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ type CloudFetchConfig struct {
471471
}
472472

473473
func (cfg CloudFetchConfig) WithDefaults() CloudFetchConfig {
474-
cfg.UseCloudFetch = false
474+
cfg.UseCloudFetch = true
475475

476476
if cfg.MaxDownloadThreads <= 0 {
477477
cfg.MaxDownloadThreads = 10

0 commit comments

Comments
 (0)