Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit a28f7c6

Browse files
authored
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
1 parent de6e0e5 commit a28f7c6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

samples/dml.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,19 +662,19 @@ async function insertWithCustomTimeoutAndRetrySettings(
662662
// The maximum amount of time to wait before retrying. I.e. after this
663663
// value is reached, the wait time will not increase further by the
664664
// multiplier.
665-
maxRetryDelayMillis: 10000,
666-
// The previous wait time is multipled by this multiplier to come up
665+
maxRetryDelayMillis: 64000,
666+
// The previous wait time is multiplied by this multiplier to come up
667667
// with the next wait time, until the max is reached.
668668
retryDelayMultiplier: 1.5,
669669

670670
// Configure RPC and total timeout settings.
671671
// Timeout for the first RPC call. Subsequent retries will be based off
672672
// this value.
673-
initialRpcTimeoutMillis: 5000,
673+
initialRpcTimeoutMillis: 60000,
674674
// Controls the change of timeout for each retry.
675-
rpcTimeoutMultiplier: 1.5,
675+
rpcTimeoutMultiplier: 1.0,
676676
// The max for the per RPC timeout.
677-
maxRpcTimeoutMillis: 30000,
677+
maxRpcTimeoutMillis: 60000,
678678
// The timeout for all calls (first call + all retries).
679679
totalTimeoutMillis: 60000,
680680
},

0 commit comments

Comments
 (0)