Skip to content

Commit

Permalink
Remove MultiHTTPProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Jul 30, 2024
1 parent 047d40b commit fbe9e1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions tests/test_http_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from web3_multi_provider import MultiProvider
from web3_multi_provider.multi_http_provider import (
FallbackProvider,
MultiHTTPProvider,
NoActiveProviderError,
ProtocolNotSupported,
)
Expand Down Expand Up @@ -40,11 +39,6 @@ class HttpProviderTestCase(TestCase):
def __inject_fixtures(self, caplog):
self._caplog = caplog

@patch("web3.providers.rpc.make_post_request", side_effect=mocked_requests_get)
def test_one_http_provider_works(self, make_post_request):
# Ignore deprecation warnings
self.one_provider_works(MultiHTTPProvider)

@patch("web3.providers.rpc.make_post_request", side_effect=mocked_requests_get)
def test_one_provider_works(self, make_post_request):
self.one_provider_works(MultiProvider)
Expand Down
2 changes: 0 additions & 2 deletions web3_multi_provider/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from .multi_http_provider import (
FallbackProvider,
MultiHTTPProvider,
MultiProvider,
NoActiveProviderError,
ProtocolNotSupported,
)

__all__ = (
"FallbackProvider",
"MultiHTTPProvider",
"MultiProvider",
"NoActiveProviderError",
"ProtocolNotSupported",
Expand Down
14 changes: 0 additions & 14 deletions web3_multi_provider/multi_http_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,3 @@ def make_request(self, method: RPCEndpoint, params: Any) -> RPCResponse:
msg = "No active provider available."
logger.debug({"msg": msg})
raise NoActiveProviderError(msg)


class MultiHTTPProvider(MultiProvider):
"""
Deprecated. Use MultiProvider instead
"""

def __init__(
self,
endpoint_urls: List[Union[URI, str]],
request_kwargs: Optional[Any] = None,
session: Optional[Any] = None,
):
super().__init__(endpoint_urls, request_kwargs, session)

0 comments on commit fbe9e1f

Please sign in to comment.