zephyr_mirror: Use a set for current_zephyr_subs

(imported from commit 2736ea13dac7d3b5914eac27ed92ddacafd6ee8e)
This commit is contained in:
Keegan McAllister 2012-10-29 21:32:59 -04:00
parent 36eab0e874
commit 1e079f1994

View file

@ -140,12 +140,12 @@ def username_to_fullname(username):
fullnames[username] = fetch_fullname(username)
return fullnames[username]
current_zephyr_subs = {}
current_zephyr_subs = set()
def ensure_subscribed(sub):
if sub in current_zephyr_subs:
return
subs.add((sub, '*', '*'))
current_zephyr_subs[sub] = True
current_zephyr_subs.add(sub)
def update_subscriptions_from_humbug():
try: