Skip to content
Snippets Groups Projects
Commit fad1f079 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

change client type

parent a62ff420
No related branches found
No related tags found
1 merge request!8Google Storage Retry settings
Checking pipeline status
......@@ -17,8 +17,8 @@
package org.opengroup.osdu.core.obm.drivers.gs.util;
import com.google.cloud.storage.GrpcStorageOptions;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
......@@ -29,7 +29,7 @@ public class GoogleStorageClientSupplier {
private final GoogleStorageSettingsSupplier storageSettingsSupplier;
public Storage buildStorageClient(String projectId) {
return GrpcStorageOptions.newBuilder()
return StorageOptions.newBuilder()
.setProjectId(projectId)
.setRetrySettings(storageSettingsSupplier.buildRetrySetting())
.build()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment