]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
introducer: fix bug in recent simplification caught by Brian's sharp code-reviewing eye
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Dec 2008 00:16:34 +0000 (17:16 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 9 Dec 2008 00:16:34 +0000 (17:16 -0700)
src/allmydata/introducer/client.py

index 6abe5bc4b0134a5f0ef209e8817c992da80de9e3..7c7e8959d3de3fe1b488cab401345b03637ba5fa 100644 (file)
@@ -297,7 +297,7 @@ class IntroducerClient(service.Service, Referenceable):
 
     def get_peers(self, service_name):
         """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):
         """Return an ordered list of (peerid, versioned-rref) tuples."""