control.py: fix speedtest: use download_best_version (not read) on mutable nodes

This commit is contained in:
Brian Warner 2009-12-06 22:05:12 -08:00
parent a6e25d0d2c
commit 696cc000d0

View File

@ -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)