web3-multi-provider 2.2.5__tar.gz → 2.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/PKG-INFO +1 -1
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/pyproject.toml +1 -1
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/async_multi_http_provider.py +2 -1
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/multi_http_provider.py +2 -1
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/LICENSE +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/README.md +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/__init__.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/async_http_provider_proxy.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/exceptions.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/http_provider_proxy.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/http_session_manager_proxy.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/metrics.py +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/py.typed +0 -0
- {web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: web3-multi-provider
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.6
|
|
4
4
|
Summary: Web3py provider that makes it easy to switch between different blockchain nodes to make sure application will be be online if main blockchain node will be unavailable.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Raman
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "web3-multi-provider"
|
|
3
|
-
version = "2.2.
|
|
3
|
+
version = "2.2.6"
|
|
4
4
|
description = "Web3py provider that makes it easy to switch between different blockchain nodes to make sure application will be be online if main blockchain node will be unavailable."
|
|
5
5
|
authors = ["Raman <raman.s@lido.fi>"]
|
|
6
6
|
license = "MIT License"
|
|
@@ -103,7 +103,7 @@ class AsyncBaseMultiProvider(AsyncJSONBaseProvider, ABC):
|
|
|
103
103
|
) -> RPCResponse:
|
|
104
104
|
exceptions: list[Exception] = []
|
|
105
105
|
|
|
106
|
-
for provider in provider_iter:
|
|
106
|
+
for index, provider in enumerate(provider_iter):
|
|
107
107
|
try:
|
|
108
108
|
response = await provider.make_request(method, params)
|
|
109
109
|
except Exception as error: # pylint: disable=broad-except
|
|
@@ -111,6 +111,7 @@ class AsyncBaseMultiProvider(AsyncJSONBaseProvider, ABC):
|
|
|
111
111
|
logger.warning(
|
|
112
112
|
{
|
|
113
113
|
"msg": "Provider not responding.",
|
|
114
|
+
"index": index,
|
|
114
115
|
"error": str(error).replace(str(provider.endpoint_uri), "****"),
|
|
115
116
|
}
|
|
116
117
|
)
|
{web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/multi_http_provider.py
RENAMED
|
@@ -104,7 +104,7 @@ class BaseMultiProvider(JSONBaseProvider, ABC):
|
|
|
104
104
|
) -> RPCResponse:
|
|
105
105
|
exceptions: list[Exception] = []
|
|
106
106
|
|
|
107
|
-
for provider in provider_iter:
|
|
107
|
+
for index, provider in enumerate(provider_iter):
|
|
108
108
|
try:
|
|
109
109
|
response = provider.make_request(method, params)
|
|
110
110
|
except Exception as error: # pylint: disable=broad-except
|
|
@@ -112,6 +112,7 @@ class BaseMultiProvider(JSONBaseProvider, ABC):
|
|
|
112
112
|
logger.warning(
|
|
113
113
|
{
|
|
114
114
|
"msg": "Provider not responding.",
|
|
115
|
+
"index": index,
|
|
115
116
|
"error": str(error).replace(str(provider.endpoint_uri), "****"),
|
|
116
117
|
}
|
|
117
118
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{web3_multi_provider-2.2.5 → web3_multi_provider-2.2.6}/web3_multi_provider/http_provider_proxy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|