Skip to content

Commit

Permalink
undo naming change to keep tests happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Kölling committed Sep 12, 2024
1 parent f3e0507 commit c58f756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipfsspec/async_ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, retry_after=None):
self.retry_after = retry_after


class AsyncGatewayBase:
class AsyncIPFSGatewayBase:
async def stat(self, path, session):
res = await self.api_get("files/stat", session, arg=path)
self._raise_not_found_for_status(res, path)
Expand Down Expand Up @@ -87,7 +87,7 @@ def _raise_not_found_for_status(self, response, url):
response.raise_for_status()


class AsyncGateway(AsyncGatewayBase):
class AsyncIPFSGateway(AsyncIPFSGatewayBase):
resolution = "path"

def __init__(self, url, protocol="ipfs"):
Expand Down Expand Up @@ -151,7 +151,7 @@ def gateway_from_file(gateway_path, protocol="ipfs"):
with open(gateway_path) as gw_file:
ipfs_gateway = gw_file.readline().strip()
logger.debug("using IPFS gateway from %s: %s", gateway_path, ipfs_gateway)
return AsyncGateway(ipfs_gateway, protocol=protocol)
return AsyncIPFSGateway(ipfs_gateway, protocol=protocol)
return None


Expand Down

0 comments on commit c58f756

Please sign in to comment.