Skip to content

Commit

Permalink
Add default RetryParams to storage options built from RemoteGcsHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Oct 8, 2015
1 parent be1d504 commit 385dd4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.google.common.collect.ImmutableMap;
import com.google.gcloud.AuthCredentials;
import com.google.gcloud.RetryParams;
import com.google.gcloud.storage.RemoteGcsHelper.Option.KeyFromClasspath;

import java.io.FileInputStream;
Expand Down Expand Up @@ -122,6 +123,7 @@ public static RemoteGcsHelper create(String projectId, String keyPath, Option...
StorageOptions storageOptions = StorageOptions.builder()
.authCredentials(AuthCredentials.createForJson(keyFileStream))
.projectId(projectId)
.retryParams(RetryParams.getDefaultInstance())
.build();
return new RemoteGcsHelper(storageOptions);
} catch (FileNotFoundException ex) {
Expand Down

0 comments on commit 385dd4e

Please sign in to comment.