mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-18 17:00:24 +00:00
Avoid another .keys() call
This commit is contained in:
parent
c83749311f
commit
dd7cb99ef4
@ -1913,7 +1913,7 @@ class Downloader(QueueMixin, WriteFileMixin):
|
||||
def _filter_batch_to_deque(ign):
|
||||
ITEM_QUEUE.log(items=self._deque)
|
||||
SCAN_BATCH.log(batch=scan_batch)
|
||||
for relpath_u in scan_batch.keys():
|
||||
for relpath_u in scan_batch:
|
||||
file_node, metadata = max(scan_batch[relpath_u], key=lambda x: x[1]['version'])
|
||||
|
||||
if self._should_download(relpath_u, metadata['version'], file_node.get_readonly_uri()):
|
||||
|
Loading…
x
Reference in New Issue
Block a user