We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160eb63 commit c8d0f97Copy full SHA for c8d0f97
1 file changed
synapse/util/clock.py
@@ -156,8 +156,7 @@ def wrapped_f(*args: P.args, **kwargs: P.kwargs) -> Deferred:
156
# in the sentinel context now.
157
#
158
# We want to start the task in the `sentinel` logcontext, to avoid leaking the
159
- # current context into the reactor after the function finishes. TODO: Or perhaps
160
- # someone cancels the looping call (does this matter?).
+ # current context into the reactor after the function finishes.
161
with context.PreserveLoggingContext():
162
d = call.start(msec / 1000.0, now=now)
163
d.addErrback(log_failure, "Looping call died", consumeErrors=False)
0 commit comments