zephyr_mirror: Use a set for current_zephyr_subs
(imported from commit 2736ea13dac7d3b5914eac27ed92ddacafd6ee8e)
This commit is contained in:
parent
36eab0e874
commit
1e079f1994
|
@ -140,12 +140,12 @@ def username_to_fullname(username):
|
||||||
fullnames[username] = fetch_fullname(username)
|
fullnames[username] = fetch_fullname(username)
|
||||||
return fullnames[username]
|
return fullnames[username]
|
||||||
|
|
||||||
current_zephyr_subs = {}
|
current_zephyr_subs = set()
|
||||||
def ensure_subscribed(sub):
|
def ensure_subscribed(sub):
|
||||||
if sub in current_zephyr_subs:
|
if sub in current_zephyr_subs:
|
||||||
return
|
return
|
||||||
subs.add((sub, '*', '*'))
|
subs.add((sub, '*', '*'))
|
||||||
current_zephyr_subs[sub] = True
|
current_zephyr_subs.add(sub)
|
||||||
|
|
||||||
def update_subscriptions_from_humbug():
|
def update_subscriptions_from_humbug():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue