From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Tue, 9 Dec 2008 00:16:34 +0000 (-0700)
Subject: introducer: fix bug in recent simplification caught by Brian's sharp code-reviewing eye
X-Git-Url: https://git.rkrishnan.org/specifications/-?a=commitdiff_plain;h=09b7151b6ff2ab2eb9154a1d30d94b85bfa5e3d8;p=tahoe-lafs%2Ftahoe-lafs.git

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

diff --git a/src/allmydata/introducer/client.py b/src/allmydata/introducer/client.py
index 6abe5bc4..7c7e8959 100644
--- a/src/allmydata/introducer/client.py
+++ b/src/allmydata/introducer/client.py
@@ -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."""