Skip to content

Commit 385dd4e

Browse files
committed
Add default RetryParams to storage options built from RemoteGcsHelper
1 parent be1d504 commit 385dd4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gcloud-java-storage/src/test/java/com/google/gcloud/storage/RemoteGcsHelper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.google.common.collect.ImmutableMap;
2020
import com.google.gcloud.AuthCredentials;
21+
import com.google.gcloud.RetryParams;
2122
import com.google.gcloud.storage.RemoteGcsHelper.Option.KeyFromClasspath;
2223

2324
import java.io.FileInputStream;
@@ -122,6 +123,7 @@ public static RemoteGcsHelper create(String projectId, String keyPath, Option...
122123
StorageOptions storageOptions = StorageOptions.builder()
123124
.authCredentials(AuthCredentials.createForJson(keyFileStream))
124125
.projectId(projectId)
126+
.retryParams(RetryParams.getDefaultInstance())
125127
.build();
126128
return new RemoteGcsHelper(storageOptions);
127129
} catch (FileNotFoundException ex) {

0 commit comments

Comments
 (0)