diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-30 11:35:46 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-30 11:35:46 +0000 |
commit | 326b3dace77aeb36e516ea9b04ba1baa171bcb47 (patch) | |
tree | 5eb76e0cd616ac49bbaf0eede5705411fd31401c /synapse | |
parent | Fix typo in domain name in account_threepid_delegates config option (#6273) (diff) | |
download | synapse-326b3dace77aeb36e516ea9b04ba1baa171bcb47.tar.xz |
Make ObservableDeferred.observe() always return deferred.
This makes it easier to use in an async/await world. Also fixes a bug where cache descriptors would occaisonally return a raw value rather than a deferred.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/util/async_helpers.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/util/async_helpers.py b/synapse/util/async_helpers.py |