Skip to content

Commit

Permalink
Use only java.time.Duration in BuiltinMetricsTracerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
djyau committed Nov 4, 2024
1 parent f409ea7 commit 83f0df1
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,16 @@ public void sendHeaders(Metadata headers) {
.retrySettings()
.setInitialRetryDelayDuration(java.time.Duration.ofMillis(200));

java.time.Duration timeout = java.time.Duration.ofMillis(6000);
java.time.Duration backOffTime = java.time.Duration.ofMillis(10);
stubSettingsBuilder
.readRowsSettings()
.retrySettings()
.setTotalTimeoutDuration(Duration.ofMillis(9000))
.setMaxRpcTimeout(org.threeten.bp.Duration.parse(timeout.toString()))
.setMaxRpcTimeoutDuration(Duration.ofMillis(6000))
.setRpcTimeoutMultiplier(1)
.setInitialRpcTimeout(org.threeten.bp.Duration.parse(timeout.toString()))
.setInitialRetryDelay(org.threeten.bp.Duration.parse(backOffTime.toString()))
.setInitialRpcTimeoutDuration(Duration.ofMillis(6000))
.setInitialRetryDelayDuration(Duration.ofMillis(10))
.setRetryDelayMultiplier(1)
.setMaxRetryDelay(org.threeten.bp.Duration.parse(backOffTime.toString()));
.setMaxRetryDelayDuration(Duration.ofMillis(10));

stubSettingsBuilder
.bulkMutateRowsSettings()
Expand Down

0 comments on commit 83f0df1

Please sign in to comment.