Skip to content

Commit

Permalink
Remove warnings about async providers.
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Feb 23, 2023
1 parent 90a9ad3 commit a1e312f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exposed by the web3 object and the backend or node that web3 is connecting to.
* **Middlewares** provide hooks for monitoring and modifying requests and
responses to and from the provider. These can be *global* operating on all
providers or specific to one provider.
* **Managers** provide thread safety and primatives to allow for asynchronous usage of web3.
* **Managers** provide thread safety and primitives to allow for asynchronous usage of web3.

Here are some common things you might want to do with these APIs.

Expand Down
3 changes: 0 additions & 3 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,6 @@ explicitly.
AsyncHTTPProvider
~~~~~~~~~~~~~~~~~

.. warning:: This provider is unstable and there are still gaps in
functionality. However, it is being actively developed.

.. py:class:: web3.providers.async_rpc.AsyncHTTPProvider(endpoint_uri[, request_kwargs])
This provider handles interactions with an HTTP or HTTPS based JSON-RPC server asynchronously.
Expand Down
1 change: 1 addition & 0 deletions newsfragments/2845.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove python warning and doc notes related to unstable async providers.
7 changes: 0 additions & 7 deletions web3/providers/async_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Tuple,
cast,
)
import warnings

from eth_utils import (
to_bytes,
Expand Down Expand Up @@ -47,12 +46,6 @@ class AsyncBaseProvider:
global_ccip_read_enabled: bool = True
ccip_read_max_redirects: int = 4

def __init__(self) -> None:
warnings.warn(
"Async providers are still being developed and refined. "
"Expect breaking changes in minor releases."
)

@property
def middlewares(self) -> Tuple[AsyncMiddleware, ...]:
return self._middlewares
Expand Down

0 comments on commit a1e312f

Please sign in to comment.