Skip to content

Commit

Permalink
async: always use MultiGateway (for retries on a single gateway)
Browse files Browse the repository at this point in the history
  • Loading branch information
d70-t committed Mar 29, 2022
1 parent 7a0de7d commit 118294b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ipfsspec/async_ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 118294b

Please sign in to comment.