summary refs log tree commit diff
path: root/synapse/util/caches/cached_call.py
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-11-22 17:23:44 +0100
committerMathieu Velten <mathieuv@matrix.org>2022-11-22 18:10:08 +0100
commitb1be9a742a079d9fb72d37f64f1b177dfb1bd7f7 (patch)
treef0800a6e579e9fd54a4f6e09514ea6e7fc898efd /synapse/util/caches/cached_call.py
parentAdd type ignore unused-awaitable to ensureDeffered calls (diff)
downloadsynapse-b1be9a742a079d9fb72d37f64f1b177dfb1bd7f7.tar.xz
Add type ignore unused-awaitable to places adding callbacks to a deffered
Diffstat (limited to 'synapse/util/caches/cached_call.py')
-rw-r--r--synapse/util/caches/cached_call.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/cached_call.py b/synapse/util/caches/cached_call.py

index e325f44da3..74b2bc4ebc 100644 --- a/synapse/util/caches/cached_call.py +++ b/synapse/util/caches/cached_call.py
@@ -89,7 +89,7 @@ class CachedCall(Generic[TV]): def got_result(r: Union[TV, Failure]) -> None: self._result = r - self._deferred.addBoth(got_result) + self._deferred.addBoth(got_result) # type: ignore[unused-awaitable] # TODO: consider cancellation semantics. Currently, if the call to get() # is cancelled, the underlying call will continue (and any future calls