]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
client: add get_servers()
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Dec 2008 00:04:00 +0000 (17:04 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Dec 2008 00:04:00 +0000 (17:04 -0700)
src/allmydata/client.py

index 4583fcc2ab05c1af3a1861d228591655718cd0c1..7022279e1f2a4d31dcc26bb670bad7101128592e 100644 (file)
@@ -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,))