From: Daira Hopwood Date: Wed, 16 Sep 2015 13:28:46 +0000 (+0100) Subject: Rename upload_ready_d to connected_enough_d. X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/access.html?a=commitdiff_plain;h=2b17d886443c46e3a8cf3e7810cfcb09844cc426;p=tahoe-lafs%2Ftahoe-lafs.git Rename upload_ready_d to connected_enough_d. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index b584bfab..9c26a3b3 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -130,7 +130,7 @@ class Client(node.Node, pollmixin.PollMixin): def __init__(self, basedir="."): node.Node.__init__(self, basedir) - self.upload_ready_d = defer.Deferred() + self.connected_enough_d = defer.Deferred() self.started_timestamp = time.time() self.logSource="Client" self.encoding_params = self.DEFAULT_ENCODING_PARAMETERS.copy() @@ -350,7 +350,7 @@ class Client(node.Node, pollmixin.PollMixin): self.encoding_params["happy"] + 1) sb = storage_client.StorageFarmBroker(self.tub, True, connection_threshold, - self.upload_ready_d) + self.connected_enough_d) self.storage_broker = sb # load static server specifications from tahoe.cfg, if any. @@ -511,7 +511,7 @@ class Client(node.Node, pollmixin.PollMixin): s.startService() # start processing the upload queue when we've connected to enough servers - self.upload_ready_d.addCallback(s.upload_ready) + self.connected_enough_d.addCallback(s.ready) except Exception, e: self.log("couldn't start drop-uploader: %r", args=(e,))