py-near 1.1.40__py3-none-any.whl → 1.1.41__py3-none-any.whl
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.
py_near/providers.py
CHANGED
@@ -155,14 +155,14 @@ class JsonProvider(object):
|
|
155
155
|
]
|
156
156
|
|
157
157
|
responses = []
|
158
|
-
while len(pending):
|
158
|
+
while pending and len(pending):
|
159
159
|
done, pending = await asyncio.wait(
|
160
160
|
pending, return_when=asyncio.FIRST_COMPLETED
|
161
161
|
)
|
162
162
|
for task in done:
|
163
163
|
try:
|
164
164
|
result = task.result()
|
165
|
-
if "error" not in result and threshold <= 1:
|
165
|
+
if "error" not in result and (not threshold or threshold <= 1):
|
166
166
|
return result
|
167
167
|
responses.append(result)
|
168
168
|
except Exception as e:
|
@@ -20,10 +20,10 @@ py_near/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
20
20
|
py_near/exceptions/exceptions.py,sha256=DEFipaAHm0y7oCuN2QKzHsiQvUTUQVl-Ce36Ag7n7hs,5509
|
21
21
|
py_near/exceptions/provider.py,sha256=K-wexgjPJ8sw42JePwaP7R5dJEIn9DoFJRvVcURsx6s,7718
|
22
22
|
py_near/models.py,sha256=GZQD1TKGWlwqsJsKRXrVNBjCdAIpk7GQypU-QOtAPFs,11533
|
23
|
-
py_near/providers.py,sha256=
|
23
|
+
py_near/providers.py,sha256=BJGiizEPuoY9VZg86xvRF5K6dLiT58KoH_JLbQ5JZOQ,15508
|
24
24
|
py_near/transactions.py,sha256=QAXegv2JpKISk92NaChtIH6-QPHrcWbrwdKH_lH4TsU,3186
|
25
25
|
py_near/utils.py,sha256=FirRH93ydH1cwjn0-sNrZeIn3BRD6QHedrP2VkAdJ6g,126
|
26
|
-
py_near-1.1.
|
27
|
-
py_near-1.1.
|
28
|
-
py_near-1.1.
|
29
|
-
py_near-1.1.
|
26
|
+
py_near-1.1.41.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
|
27
|
+
py_near-1.1.41.dist-info/METADATA,sha256=nB3IxSi2CnJDNc0zp5YNdCVFEeu_uWSkmE41gjrNZ3I,4713
|
28
|
+
py_near-1.1.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
29
|
+
py_near-1.1.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|