From: Zooko O'Whielacronx Date: Tue, 9 Dec 2008 00:04:00 +0000 (-0700) Subject: client: add get_servers() X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/install.html?a=commitdiff_plain;h=1d84606d5240c54439bfd825df166aa1489e2a3e;p=tahoe-lafs%2Ftahoe-lafs.git client: add get_servers() --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 4583fcc2..7022279e 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -251,6 +251,11 @@ class Client(node.Node, pollmixin.PollMixin): def _lost_key_generator(self): self._key_generator = None + def get_servers(self, service_name): + """ Return set of (peerid, versioned-rref) """ + assert isinstance(service_name, str) + return self.introducer_client.get_peers(service_name) + def init_web(self, webport): self.log("init_web(webport=%s)", args=(webport,))