projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
278c47b
)
client: add get_servers()
author
Zooko O'Whielacronx
<zooko@zooko.com>
Tue, 9 Dec 2008 00:04:00 +0000
(17:04 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Tue, 9 Dec 2008 00:04:00 +0000
(17:04 -0700)
src/allmydata/client.py
patch
|
blob
|
history
diff --git
a/src/allmydata/client.py
b/src/allmydata/client.py
index 4583fcc2ab05c1af3a1861d228591655718cd0c1..7022279e1f2a4d31dcc26bb670bad7101128592e 100644
(file)
--- 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,))