@@ -253,18 +253,18 @@ See https://pkg.go.dev/google.golang.org/api/googleapi#Error for more informatio
253
253
254
254
Retrying failed requests
255
255
256
- Methods of this package may use exponential backoff to retry calls
257
- that fail with transient errors. Retrying continues indefinitely unless the
258
- controlling context is canceled, the client is closed, or a non-transient error
259
- is received. See context.WithTimeout and context.WithCancel .
260
-
261
- Retry strategy in this library follows best practices for Cloud Storage. By
262
- default, only idempotent operations are retried, exponential backoff with jitter
263
- is employed, and only transient network errors and response codes defined as
264
- transient by the service and will be retried . See
256
+ Methods in this package may retry calls that fail with transient errors.
257
+ Retrying continues indefinitely unless the controlling context is canceled, the
258
+ client is closed, or a non-transient error is received. To stop retries from
259
+ continuing, use context timeouts or cancellation .
260
+
261
+ The retry strategy in this library follows best practices for Cloud Storage. By
262
+ default, operations are retried only if they are idempotent, and exponential
263
+ backoff with jitter is employed. In addition, errors are only retried if they
264
+ are defined as transient by the service. See
265
265
https://cloud.google.com/storage/docs/retry-strategy for more information.
266
266
267
- Users can configure non-default retry behavior for a particular operation (using
267
+ Users can configure non-default retry behavior for a single library call (using
268
268
BucketHandle.Retryer and ObjectHandle.Retryer) or for all calls made by a
269
269
client (using Client.SetRetry). For example:
270
270
@@ -278,7 +278,7 @@ client (using Client.SetRetry). For example:
278
278
storage.WithPolicy(storage.RetryAlways),
279
279
)
280
280
281
- // Use context timeouts to set an overall deadline on the call, including all
281
+ // Use a context timeout to set an overall deadline on the call, including all
282
282
// potential retries.
283
283
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
284
284
defer cancel()
0 commit comments