From 1d84606d5240c54439bfd825df166aa1489e2a3e Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Mon, 8 Dec 2008 17:04:00 -0700 Subject: [PATCH] client: add get_servers() --- src/allmydata/client.py | 5 +++++ 1 file changed, 5 insertions(+) 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,)) -- 2.45.2