mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 10:05:55 +03:00
Rename things
This commit is contained in:
parent
ee5aef6c72
commit
95ac3078da
1 changed files with 5 additions and 5 deletions
|
@ -175,13 +175,13 @@ class Linearizer(object):
|
|||
yield preserve_context_over_deferred(current_defer)
|
||||
|
||||
@contextmanager
|
||||
def _ctx_manager(d):
|
||||
def _ctx_manager():
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
d.callback(None)
|
||||
d = self.key_to_defer.get(key)
|
||||
if d is new_defer:
|
||||
new_defer.callback(None)
|
||||
current_d = self.key_to_defer.get(key)
|
||||
if current_d is new_defer:
|
||||
self.key_to_defer.pop(key, None)
|
||||
|
||||
defer.returnValue(_ctx_manager(new_defer))
|
||||
defer.returnValue(_ctx_manager())
|
||||
|
|
Loading…
Reference in a new issue