summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-12 16:12:37 +0100
committerErik Johnston <erik@matrix.org>2015-05-12 16:12:37 +0100
commite12268597804d759f82ccd827359059ba7cb05ef (patch)
treeae4c5e479f2f318cf99c0ec503144c210c9d091d /synapse/storage
parentMerge pull request #151 from matrix-org/revert-147-presence-performance (diff)
downloadsynapse-e12268597804d759f82ccd827359059ba7cb05ef.tar.xz
You need to call contextmanager
Diffstat (limited to '')
-rw-r--r--synapse/storage/events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index a5a6869079..9242b0a84e 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -48,6 +48,7 @@ class EventsStore(SQLBaseStore):
             @contextmanager
             def stream_ordering_manager():
                 yield stream_ordering
+            stream_ordering_manager = stream_ordering_manager()
 
         try:
             with stream_ordering_manager as stream_ordering: