Skip to content

Commit

Permalink
feat: introduce java.time (#1410)
Browse files Browse the repository at this point in the history
* feat: introduce `java.time`

* declare threeten as test-scoped

* completely remove threeten

* reset tests

* fix ignore

* fix dependency:analyze
  • Loading branch information
diegomarquezp authored Nov 26, 2024
1 parent 32b02a3 commit 05b12ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
<dependency>
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.google.api.gax.batching.BatchingSettings;
import com.google.api.gax.batching.FlowControlSettings;
import com.google.api.gax.batching.FlowController.LimitExceededBehavior;
import org.threeten.bp.Duration;
import java.time.Duration;

/**
* This class is used only to provide batch settings configuration in logback.xml since {@link
Expand Down Expand Up @@ -69,7 +69,7 @@ public BatchingSettings build() {
settings.setRequestByteThreshold(requestByteThreshold);
}
if (delayThreshold != null) {
settings.setDelayThreshold(Duration.ofMillis(delayThreshold));
settings.setDelayThresholdDuration(Duration.ofMillis(delayThreshold));
}
if (maxOutstandingElementCount != null
|| maxOutstandingRequestBytes != null
Expand Down

0 comments on commit 05b12ae

Please sign in to comment.