From 121e5a9542f987b364f4a4d955cc75179e503e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Thu, 27 May 2021 01:44:58 +0200 Subject: [PATCH] docs: align timeout values with documentation (#1379) The timeout values in the sample do not correspond with the official documentation surrounding the sample: https://cloud.google.com/spanner/docs/custom-timeout-and-retry#node --- samples/dml.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/dml.js b/samples/dml.js index 5c0c63b79..4ab57147f 100644 --- a/samples/dml.js +++ b/samples/dml.js @@ -662,19 +662,19 @@ async function insertWithCustomTimeoutAndRetrySettings( // The maximum amount of time to wait before retrying. I.e. after this // value is reached, the wait time will not increase further by the // multiplier. - maxRetryDelayMillis: 10000, - // The previous wait time is multipled by this multiplier to come up + maxRetryDelayMillis: 64000, + // The previous wait time is multiplied by this multiplier to come up // with the next wait time, until the max is reached. retryDelayMultiplier: 1.5, // Configure RPC and total timeout settings. // Timeout for the first RPC call. Subsequent retries will be based off // this value. - initialRpcTimeoutMillis: 5000, + initialRpcTimeoutMillis: 60000, // Controls the change of timeout for each retry. - rpcTimeoutMultiplier: 1.5, + rpcTimeoutMultiplier: 1.0, // The max for the per RPC timeout. - maxRpcTimeoutMillis: 30000, + maxRpcTimeoutMillis: 60000, // The timeout for all calls (first call + all retries). totalTimeoutMillis: 60000, },