2424from core import certificate , dashboard , unit
2525from core import scheduler
2626import pyzstd as zstd
27- from core .timings import logTqdm , logTqdmType
2827import core .utils as utils
2928import core .stats as stats
3029import core .web as web
@@ -280,7 +279,7 @@ async def download(self, miss: list[BMCLAPIFile]):
280279 unit_divisor = 1024 ,
281280 total = sum ((file .size for file in miss )),
282281 unit_scale = True ,
283- ) as pbar , logTqdm ( pbar , logTqdmType . BYTES ) :
282+ ) as pbar :
284283 await dashboard .set_status_by_tqdm ("files.downloading" , pbar )
285284 for file in miss :
286285 await self .queues .put (file )
@@ -344,7 +343,7 @@ async def __call__(
344343 total = len (files ) * len (storages .get_storages ()),
345344 unit = locale .t ("cluster.tqdm.unit.file" ),
346345 unit_scale = True ,
347- ) as pbar , logTqdm ( pbar ) :
346+ ) as pbar :
348347 self .pbar = pbar
349348 self .files = files
350349 await dashboard .set_status_by_tqdm ("files.checking" , pbar )
@@ -379,7 +378,7 @@ async def __call__(
379378 ):
380379 missing_files_by_storage [storage ].add ((file , index_storage ))
381380 total_missing_bytes += file .size
382- if total_missing_bytes != 0 and len (g_storage ) >= 2 and FROM_OTHER_STORAGE_COPY :
381+ if total_missing_bytes != 0 and len (g_storage ) >= 2 and COPY_FROM_OTHER_STORAGE :
383382 with tqdm (
384383 total = total_missing_bytes ,
385384 desc = locale .t (
@@ -388,7 +387,7 @@ async def __call__(
388387 unit = "B" ,
389388 unit_divisor = 1024 ,
390389 unit_scale = True ,
391- ) as pbar , logTqdm ( pbar , logTqdmType . BYTES ) :
390+ ) as pbar :
392391 await dashboard .set_status_by_tqdm ("files.copying" , pbar )
393392 removes : defaultdict [Storage , set [tuple [BMCLAPIFile , int ]]] = (
394393 defaultdict (set )
@@ -452,7 +451,7 @@ async def __call__(
452451 desc = locale .t ("cluster.tqdm.desc.delete_old_files" ),
453452 unit = locale .t ("cluster.tqdm.unit.file" ),
454453 unit_scale = True ,
455- ) as pbar , logTqdm ( pbar ) :
454+ ) as pbar :
456455 await dashboard .set_status_by_tqdm ("files.delete_old" , pbar )
457456 for storage , filelist in more_files .items ():
458457 removed = await storage .removes (filelist )
@@ -789,7 +788,7 @@ def stop(tqdm: Optional[tqdm] = None):
789788 with tqdm (
790789 total = len (dirs ),
791790 desc = f"[WebDav List Files <endpoint: '{ self ._download_endpoint ()} '>]" ,
792- ) as pbar , logTqdm ( pbar ) :
791+ ) as pbar :
793792 await dashboard .set_status_by_tqdm ("storage.webdav" , pbar )
794793 r = await self ._execute (self .session .list (self ._download_endpoint ()))
795794 if r is asyncio .CancelledError :
0 commit comments