Skip to content

Commit 75caec1

Browse files
committed
Changes from comments on PR #3048
1 parent afea92a commit 75caec1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/providers.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ WebsocketProviderV2 (beta)
236236
.. code-block:: python
237237
238238
>>> import asyncio
239-
>>> from web3 import Web3
239+
>>> from web3 import AsyncWeb3
240240
>>> from web3.providers import WebsocketProviderV2
241241
242242
>>> LOG = True # toggle debug logging
243243
>>> if LOG:
244-
>>> import logging
245-
>>> logger = logging.getLogger("web3.providers.WebsocketProviderV2")
246-
>>> logger.setLevel(logging.DEBUG)
247-
>>> logger.addHandler(logging.StreamHandler())
244+
... import logging
245+
... logger = logging.getLogger("web3.providers.WebsocketProviderV2")
246+
... logger.setLevel(logging.DEBUG)
247+
... logger.addHandler(logging.StreamHandler())
248248
249249
>>> async def ws_v2_subscription_example():
250250
... async with AsyncWeb3.persistent_websocket(

web3/providers/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class BaseProvider:
4242
)
4343

4444
is_async = False
45+
has_persistent_connection = False
4546
global_ccip_read_enabled: bool = True
4647
ccip_read_max_redirects: int = 4
4748

0 commit comments

Comments
 (0)