File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
google-cloud-storage/src/main/java/com/google/cloud/storage Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1616
1717package com .google .cloud .storage ;
1818
19- import static com .google .cloud .RetryHelper .runWithRetries ;
2019import static java .util .Objects .requireNonNull ;
2120import static java .util .concurrent .Executors .callable ;
2221
2827import com .google .cloud .RetryHelper ;
2928import com .google .cloud .WriteChannel ;
3029import java .math .BigInteger ;
30+ import java .util .function .Function ;
3131import java .util .function .Supplier ;
3232import org .checkerframework .checker .nullness .qual .NonNull ;
3333
@@ -186,7 +186,9 @@ private static StorageException unrecoverableState(
186186 @ Override
187187 protected void flushBuffer (final int length , final boolean lastChunk ) {
188188 try {
189- runWithRetries (
189+ Retrying .run (
190+ getOptions (),
191+ algorithmForWrite ,
190192 callable (
191193 new Runnable () {
192194 @ Override
@@ -274,9 +276,7 @@ public void run() {
274276 }
275277 }
276278 }),
277- getOptions ().getRetrySettings (),
278- algorithmForWrite ,
279- getOptions ().getClock ());
279+ Function .identity ());
280280 } catch (RetryHelper .RetryHelperException e ) {
281281 throw StorageException .translateAndThrow (e );
282282 }
You can’t perform that action at this time.
0 commit comments