Skip to content

Commit 5cb5e23

Browse files
committed
Update docs with the details of multiple HTTPProviders
1 parent 51ead81 commit 5cb5e23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/providers.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ HTTPProvider
124124
>>> from web3 import Web3
125125
>>> w3 = Web3(Web3.HTTPProvider("http://127.0.0.1:8545"))
126126
127-
Note that you should create only one HTTPProvider per python
128-
process, as the HTTPProvider recycles underlying TCP/IP network connections,
129-
for better performance.
127+
Note that you should create only one HTTPProvider with the same provider URL
128+
per python process, as the HTTPProvider recycles underlying TCP/IP
129+
network connections, for better performance. Multiple HTTPProviders with different
130+
URLs will work as expected.
130131

131132
Under the hood, the ``HTTPProvider`` uses the python requests library for
132133
making requests. If you would like to modify how requests are made, you can

0 commit comments

Comments
 (0)