File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
test-proxy/src/main/java/com/google/cloud/bigtable/testproxy Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments