Visitar URL original
update · googleapis/java-bigtable@099a16c · GitHub
Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Commit 099a16c

Browse files
committed
update
1 parent 8cb1942 commit 099a16c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,12 @@ public synchronized void createClient(
217217

218218
BigtableDataSettings.Builder settingsBuilder = BigtableDataSettings.newBuilder();
219219
if (request.hasPerOperationTimeout()) {
220-
com.google.protobuf.Duration timeoutFromReq = request.getPerOperationTimeout();
221-
Duration newTimeout =
222-
Duration.ofSeconds(timeoutFromReq.getSeconds(), timeoutFromReq.getNanos());
220+
Duration newTimeout = Duration.ofMillis(Durations.toMillis(request.getPerOperationTimeout()));
223221
settingsBuilder = overrideTimeoutSetting(newTimeout, settingsBuilder);
224222
logger.info(
225223
String.format(
226224
"Total timeout is set to %s for all the methods",
227-
Durations.toString(timeoutFromReq)));
225+
Durations.toString(request.getPerOperationTimeout())));
228226
}
229227

230228
// Create and store CbtClient for later use

0 commit comments

Comments
 (0)