mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 18:06:46 +00:00
control.py: fix speedtest: use download_best_version (not read) on mutable nodes
This commit is contained in:
parent
a6e25d0d2c
commit
696cc000d0
@ -199,7 +199,10 @@ class SpeedTest:
|
||||
if i >= self.count:
|
||||
return
|
||||
n = self.parent.create_node_from_uri(self.uris[i])
|
||||
d1 = n.read(DiscardingConsumer())
|
||||
if n.is_mutable():
|
||||
d1 = n.download_best_version()
|
||||
else:
|
||||
d1 = n.read(DiscardingConsumer())
|
||||
d1.addCallback(_download_one_file, i+1)
|
||||
return d1
|
||||
d.addCallback(_download_one_file, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user