summaryrefslogtreecommitdiff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@stabilator.openmarket.com>2018-11-01 13:59:05 +0000
committerErik Johnston <erikj@stabilator.openmarket.com>2018-11-01 13:59:05 +0000
commit4aa4aef0e3a984c30b05e7c4dc272ff9388646ac (patch)
tree30e700dadabd415c169c3850aaf73aef817ef7e2 /synapse/notifier.py
parent0585db0697d2858e57782571aa0b91fbcf0d2bbe (diff)
New upstream version 0.33.8
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r--synapse/notifier.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index 340b16ce..de02b101 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -186,9 +186,9 @@ class Notifier(object):
def count_listeners():
all_user_streams = set()
- for x in self.room_to_user_streams.values():
+ for x in list(self.room_to_user_streams.values()):
all_user_streams |= x
- for x in self.user_to_user_stream.values():
+ for x in list(self.user_to_user_stream.values()):
all_user_streams.add(x)
return sum(stream.count_listeners() for stream in all_user_streams)
@@ -196,7 +196,7 @@ class Notifier(object):
LaterGauge(
"synapse_notifier_rooms", "", [],
- lambda: count(bool, self.room_to_user_streams.values()),
+ lambda: count(bool, list(self.room_to_user_streams.values())),
)
LaterGauge(
"synapse_notifier_users", "", [],