introducer: fix bug in recent simplification caught by Brian's sharp code-reviewing eye

This commit is contained in:
Zooko O'Whielacronx 2008-12-08 17:16:34 -07:00
parent a84581fcff
commit 09b7151b6f
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class IntroducerClient(service.Service, Referenceable):
def get_peers(self, service_name): def get_peers(self, service_name):
"""Return a set of (peerid, versioned-rref) tuples.""" """Return a set of (peerid, versioned-rref) tuples."""
return frozenset([(pid, r) for (pid, servname, r) in self._connections if servname == servname]) return frozenset([(peerid, r) for (peerid, servname, r) in self._connections if servname == service_name])
def get_permuted_peers(self, service_name, key): def get_permuted_peers(self, service_name, key):
"""Return an ordered list of (peerid, versioned-rref) tuples.""" """Return an ordered list of (peerid, versioned-rref) tuples."""