diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2017-11-15 11:13:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 11:13:53 +0000 |
commit | 1b83c09c034dfbe35b462404da0aca071ae1f65e (patch) | |
tree | 9020d3f64ad16f8c25b318653b702e91ae34d80b /synapse/federation/federation_client.py | |
parent | Merge pull request #2650 from matrix-org/dbkr/push_include_content_option (diff) | |
parent | Remove __PreservingContextDeferred too (diff) | |
download | synapse-1b83c09c034dfbe35b462404da0aca071ae1f65e.tar.xz |
Merge pull request #2675 from matrix-org/rav/remove_broken_logcontext_funcs
Remove preserve_context_over_{fn, deferred}
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index 7c5e5d957f..b8f02f5391 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -25,7 +25,7 @@ from synapse.api.errors import ( from synapse.util import unwrapFirstError, logcontext from synapse.util.caches.expiringcache import ExpiringCache from synapse.util.logutils import log_function -from synapse.util.logcontext import preserve_fn, preserve_context_over_deferred +from synapse.util.logcontext import make_deferred_yieldable, preserve_fn from synapse.events import FrozenEvent, builder import synapse.metrics @@ -420,7 +420,7 @@ class FederationClient(FederationBase): for e_id in batch ] - res = yield preserve_context_over_deferred( + res = yield make_deferred_yieldable( defer.DeferredList(deferreds, consumeErrors=True) ) for success, result in res: |