From 118294b076260a1bafc9a0799209504ae30eda39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ko=CC=88lling?= Date: Tue, 29 Mar 2022 11:29:38 +0200 Subject: [PATCH] async: always use MultiGateway (for retries on a single gateway) --- ipfsspec/async_ipfs.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ipfsspec/async_ipfs.py b/ipfsspec/async_ipfs.py index aad28c7..32cc8c6 100644 --- a/ipfsspec/async_ipfs.py +++ b/ipfsspec/async_ipfs.py @@ -258,10 +258,7 @@ def get_gateway(): def use_gateway(*urls): global DEFAULT_GATEWAY - if len(urls) == 1: - DEFAULT_GATEWAY = AsyncIPFSGateway(urls[0]) - else: - DEFAULT_GATEWAY = MultiGateway([AsyncIPFSGateway(url) for url in urls]) + DEFAULT_GATEWAY = MultiGateway([AsyncIPFSGateway(url) for url in urls]) class AsyncIPFSFileSystem(AsyncFileSystem):