0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-19 16:32:24 +01:00

You need to call contextmanager

This commit is contained in:
Erik Johnston 2015-05-12 16:12:37 +01:00
parent 54ef09f860
commit e122685978

View file

@ -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: