Skip to content

Commit 641ee43

Browse files
committed
lfs: use fsspec _run_coros_in_chunks
1 parent 86fc9d3 commit 641ee43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/scmrepo/git/lfs/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
import aiohttp
88
from aiohttp_retry import ExponentialRetry, RetryClient
9-
from dvc_objects.executors import batch_coros
109
from dvc_objects.fs import localfs
1110
from dvc_objects.fs.utils import as_atomic
12-
from fsspec.asyn import sync_wrapper
11+
from fsspec.asyn import _run_coros_in_chunks, sync_wrapper
1312
from fsspec.callbacks import DEFAULT_CALLBACK
1413
from fsspec.implementations.http import HTTPFileSystem
1514
from funcy import cached_property
@@ -178,7 +177,7 @@ async def _get_one(from_path: str, to_path: str, **kwargs):
178177
headers = download.get("header", {})
179178
to_path = storage.oid_to_path(obj.oid)
180179
coros.append(_get_one(url, to_path, headers=headers))
181-
for result in await batch_coros(
180+
for result in await _run_coros_in_chunks(
182181
coros, batch_size=self._JOBS, return_exceptions=True
183182
):
184183
if isinstance(result, BaseException):

0 commit comments

Comments
 (0)