Skip to content

Commit

Permalink
fix: un-awaited method
Browse files Browse the repository at this point in the history
  • Loading branch information
CNLHC committed Dec 5, 2024
1 parent 3bac1f5 commit ce49c91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ossfs/async_oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ async def _call_oss(
if not method:
method = getattr(aiooss2, method_name)
logger.debug("CALL: %s - %s - %s", method.__name__, args, kwargs)
out = method(service, *args, **kwargs)
if method_name =="resumable_upload":
out = await method(service, *args, **kwargs)
else:
out = method(service, *args, **kwargs)
else:
logger.debug("CALL: %s - %s - %s", method.__name__, args, kwargs)
out = await method(*args, **kwargs)
Expand Down

0 comments on commit ce49c91

Please sign in to comment.