more storage_broker refactoring: downloader gets a broker instead of a client,

use Client.get_storage_broker() accessor instead of direct attribute access.
This commit is contained in:
Brian Warner
2009-06-01 19:25:11 -07:00
parent 3a1196701f
commit b1290633b8
12 changed files with 29 additions and 13 deletions

View File

@ -263,6 +263,9 @@ class Client(node.Node, pollmixin.PollMixin):
default=True, boolean=True):
sb.use_introducer(self.introducer_client)
def get_storage_broker(self):
return self.storage_broker
def init_stub_client(self):
def _publish(res):
# we publish an empty object so that the introducer can count how