commit 068ac5bbe640e98b800ff2a09eb82117f34cb650 Author: Isis Lovecruft isis@torproject.org Date: Fri Nov 15 13:49:02 2013 +0000
Keep a counter on total bridges inserted into a hashring. --- lib/bridgedb/Bridges.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py index 7e24dbe..a11cd48 100644 --- a/lib/bridgedb/Bridges.py +++ b/lib/bridgedb/Bridges.py @@ -1074,9 +1074,13 @@ class FilteredBridgeSplitter(BridgeHolder):
if populate_from: logging.info("Populating hashring %s..." % ringname) + inserted = 0 for bridge in populate_from: if isinstance(bridge, Bridge) and filterFn(bridge): subring.insert(bridge) + inserted += 1 + logging.info("Inserted %d bridges into hashring %s!" + % (inserted, ringname))
def dumpAssignments(self, f, description=""): # one ring per filter set
tor-commits@lists.torproject.org