defer.returnValue must not be called within Measure

This commit is contained in:
Erik Johnston 2016-08-19 18:06:31 +01:00
parent 37adde32dc
commit afbf6b33fc
2 changed files with 8 additions and 9 deletions

View file

@ -256,8 +256,7 @@ class Notifier(object):
"""Used to inform replication listeners that something has happend
without waking up any of the normal user event streams"""
with PreserveLoggingContext():
with Measure(self.clock, "on_new_replication_data"):
self.notify_replication()
self.notify_replication()
@defer.inlineCallbacks
def wait_for_events(self, user_id, timeout, callback, room_ids=None,