mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
You need to call contextmanager
This commit is contained in:
parent
54ef09f860
commit
e122685978
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ class EventsStore(SQLBaseStore):
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def stream_ordering_manager():
|
def stream_ordering_manager():
|
||||||
yield stream_ordering
|
yield stream_ordering
|
||||||
|
stream_ordering_manager = stream_ordering_manager()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with stream_ordering_manager as stream_ordering:
|
with stream_ordering_manager as stream_ordering:
|
||||||
|
|
Loading…
Reference in a new issue