mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-06 09:31:43 +00:00
stop making History be a Service, it wasn't necessary
This commit is contained in:
parent
0d5dc51617
commit
d214f7eebe
@ -258,7 +258,7 @@ class Client(node.Node, pollmixin.PollMixin):
|
|||||||
self.convergence = base32.a2b(convergence_s)
|
self.convergence = base32.a2b(convergence_s)
|
||||||
|
|
||||||
self.init_client_storage_broker()
|
self.init_client_storage_broker()
|
||||||
self.history = self.add_service(History(self.stats_provider))
|
self.history = History(self.stats_provider)
|
||||||
self.add_service(Uploader(helper_furl, self.stats_provider))
|
self.add_service(Uploader(helper_furl, self.stats_provider))
|
||||||
download_cachedir = os.path.join(self.basedir,
|
download_cachedir = os.path.join(self.basedir,
|
||||||
"private", "cache", "download")
|
"private", "cache", "download")
|
||||||
@ -329,7 +329,7 @@ class Client(node.Node, pollmixin.PollMixin):
|
|||||||
self._key_generator)
|
self._key_generator)
|
||||||
|
|
||||||
def get_history(self):
|
def get_history(self):
|
||||||
return self.getServiceNamed("history")
|
return self.history
|
||||||
|
|
||||||
def init_control(self):
|
def init_control(self):
|
||||||
d = self.when_tub_ready()
|
d = self.when_tub_ready()
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
import weakref
|
import weakref
|
||||||
from twisted.application import service
|
|
||||||
|
|
||||||
class History(service.Service):
|
class History:
|
||||||
"""Keep track of recent operations, for a status display."""
|
"""Keep track of recent operations, for a status display."""
|
||||||
|
|
||||||
name = "history"
|
name = "history"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user