From: Brian Warner Date: Sat, 15 Aug 2009 11:44:15 +0000 (-0700) Subject: stop making History be a Service, it wasn't necessary X-Git-Tag: trac-4100~54 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/%3C?a=commitdiff_plain;h=d214f7eebe49f9fdb86d3435747bc287d66f4932;p=tahoe-lafs%2Ftahoe-lafs.git stop making History be a Service, it wasn't necessary --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 51f96d1d..a664660a 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -258,7 +258,7 @@ class Client(node.Node, pollmixin.PollMixin): self.convergence = base32.a2b(convergence_s) 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)) download_cachedir = os.path.join(self.basedir, "private", "cache", "download") @@ -329,7 +329,7 @@ class Client(node.Node, pollmixin.PollMixin): self._key_generator) def get_history(self): - return self.getServiceNamed("history") + return self.history def init_control(self): d = self.when_tub_ready() diff --git a/src/allmydata/history.py b/src/allmydata/history.py index d561699f..f46eb6d4 100644 --- a/src/allmydata/history.py +++ b/src/allmydata/history.py @@ -1,8 +1,7 @@ import weakref -from twisted.application import service -class History(service.Service): +class History: """Keep track of recent operations, for a status display.""" name = "history"