Skip to content

Commit e6b6096

Browse files
committed
docs clarification updates
1 parent fc3693c commit e6b6096

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

docs/internals.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ options on the provider instance:
144144
Retry Requests for HTTP Providers
145145
`````````````````````````````````
146146

147+
``HTTPProvider`` and ``AsyncHTTPProvider`` instances retry certain requests by default
148+
on exceptions. This can be configured via the ``exception_retry_configuration``
149+
property on the provider instance, which takes a
150+
:class:`~web3.providers.rpc.utils.ExceptionRetryConfiguration` class as its value. The
151+
retry mechanism employs an exponential backoff strategy, starting from the initial
152+
value determined by the ``backoff_factor``, and doubling the delay with each attempt,
153+
up to the ``retries`` value. Below is an example showing the default options for the
154+
retry configuration and how to override them.
155+
156+
147157
.. py:class:: web3.providers.rpc.utils.ExceptionRetryConfiguration
148158
149159
.. py:attribute:: errors
@@ -166,14 +176,6 @@ Retry Requests for HTTP Providers
166176
A list of retryable methods. The default is an in-house list of deemed-safe-to-
167177
retry methods.
168178

169-
170-
``HTTPProvider`` and ``AsyncHTTPProvider`` instances retry certain requests by default
171-
on exceptions. This can be configured via configuration options on the provider
172-
instance. The retry mechanism employs an exponential backoff strategy, starting from
173-
the initial value determined by the ``backoff_factor``, and doubling the delay with
174-
each attempt, up to the ``retries`` value. Below is an example showing the default
175-
options for the retry configuration and how to override them.
176-
177179
.. code-block:: python
178180
179181
from web3 import Web3, HTTPProvider

0 commit comments

Comments
 (0)