mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 05:43:03 +00:00
Just iterate over the dictionary.
It is not shared with anyone. It is not mutated inside the loop. We can use the no-copy dict iterator.
This commit is contained in:
parent
e0c240a559
commit
62cb883ca2
@ -1797,7 +1797,7 @@ class Downloader(QueueMixin, WriteFileMixin):
|
||||
def scan_collective(result):
|
||||
COLLECTIVE_SCAN.log(dmds=result)
|
||||
list_of_deferreds = []
|
||||
for dir_name in result.keys():
|
||||
for dir_name in result:
|
||||
# XXX make sure it's a directory
|
||||
d = DeferredContext(defer.succeed(None))
|
||||
d.addCallback(lambda x, dir_name=dir_name: result[dir_name][0].get_child_and_metadata(filename))
|
||||
|
Loading…
x
Reference in New Issue
Block a user