mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 21:09:25 -05:00
Rename things
This commit is contained in:
parent
ee5aef6c72
commit
95ac3078da
@ -175,13 +175,13 @@ class Linearizer(object):
|
|||||||
yield preserve_context_over_deferred(current_defer)
|
yield preserve_context_over_deferred(current_defer)
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def _ctx_manager(d):
|
def _ctx_manager():
|
||||||
try:
|
try:
|
||||||
yield
|
yield
|
||||||
finally:
|
finally:
|
||||||
d.callback(None)
|
new_defer.callback(None)
|
||||||
d = self.key_to_defer.get(key)
|
current_d = self.key_to_defer.get(key)
|
||||||
if d is new_defer:
|
if current_d is new_defer:
|
||||||
self.key_to_defer.pop(key, None)
|
self.key_to_defer.pop(key, None)
|
||||||
|
|
||||||
defer.returnValue(_ctx_manager(new_defer))
|
defer.returnValue(_ctx_manager())
|
||||||
|
Loading…
Reference in New Issue
Block a user