Skip to content

Commit 29d823d

Browse files
chore: update retry docs (#1481)
Co-authored-by: cojenco <[email protected]>
1 parent 5cfb7a5 commit 29d823d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/retry_timeout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ explicit policy in your code.
112112
113113
from google.cloud.storage.retry import DEFAULT_RETRY
114114
115-
# Customize retry with a deadline of 500 seconds (default=120 seconds).
116-
modified_retry = DEFAULT_RETRY.with_deadline(500.0)
115+
# Customize retry with a timeout of 500 seconds (default=120 seconds).
116+
modified_retry = DEFAULT_RETRY.with_timeout(500.0)
117117
# Customize retry with an initial wait time of 1.5 (default=1.0).
118118
# Customize retry with a wait time multiplier per iteration of 1.2 (default=2.0).
119119
# Customize retry with a maximum wait time of 45.0 (default=60.0).

0 commit comments

Comments
 (0)