Skip to content

Commit 118294b

Browse files
committed
async: always use MultiGateway (for retries on a single gateway)
1 parent 7a0de7d commit 118294b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ipfsspec/async_ipfs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,7 @@ def get_gateway():
258258

259259
def use_gateway(*urls):
260260
global DEFAULT_GATEWAY
261-
if len(urls) == 1:
262-
DEFAULT_GATEWAY = AsyncIPFSGateway(urls[0])
263-
else:
264-
DEFAULT_GATEWAY = MultiGateway([AsyncIPFSGateway(url) for url in urls])
261+
DEFAULT_GATEWAY = MultiGateway([AsyncIPFSGateway(url) for url in urls])
265262

266263

267264
class AsyncIPFSFileSystem(AsyncFileSystem):

0 commit comments

Comments
 (0)