mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 11:51:21 +00:00
directories: rename internal data member download_cache to download_cache_dirman (benchmarks set this internal member and use the new name, so changing this makes the bench_dirnode.py work again)
This commit is contained in:
parent
efafcfb91a
commit
c678e8c77a
@ -230,8 +230,8 @@ class Client(node.Node, pollmixin.PollMixin):
|
||||
self.add_service(Uploader(helper_furl, self.stats_provider))
|
||||
download_cachedir = os.path.join(self.basedir,
|
||||
"private", "cache", "download")
|
||||
self.download_cache = cachedir.CacheDirectoryManager(download_cachedir)
|
||||
self.download_cache.setServiceParent(self)
|
||||
self.download_cache_dirman = cachedir.CacheDirectoryManager(download_cachedir)
|
||||
self.download_cache_dirman.setServiceParent(self)
|
||||
self.add_service(Downloader(self.stats_provider))
|
||||
self.init_stub_client()
|
||||
|
||||
@ -429,7 +429,7 @@ class Client(node.Node, pollmixin.PollMixin):
|
||||
node = LiteralFileNode(u, self) # LIT
|
||||
else:
|
||||
key = base32.b2a(u.storage_index)
|
||||
cachefile = self.download_cache.get_file(key)
|
||||
cachefile = self.download_cache_dirman.get_file(key)
|
||||
node = FileNode(u, self, cachefile) # CHK
|
||||
else:
|
||||
assert IMutableFileURI.providedBy(u), u
|
||||
|
Loading…
x
Reference in New Issue
Block a user