summary refs log tree commit diff
path: root/synapse/util/retryutils.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2017-03-23 09:29:28 +0000
committerGitHub <noreply@github.com>2017-03-23 09:29:28 +0000
commitb2d40d736359f694a7fc2f4c21e3e53b934d59d8 (patch)
treef31d28d9d9de7eb218037277624463cd5e9d08ed /synapse/util/retryutils.py
parentMerge pull request #2044 from matrix-org/rav/crypto_docs (diff)
parentFix a couple of logcontext leaks (diff)
downloadsynapse-b2d40d736359f694a7fc2f4c21e3e53b934d59d8.tar.xz
Merge pull request #2049 from matrix-org/rav/logcontext_leaks
Fix a couple of logcontext leaks
Diffstat (limited to 'synapse/util/retryutils.py')
-rw-r--r--synapse/util/retryutils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/util/retryutils.py b/synapse/util/retryutils.py
index 153ef001ad..b68e8c4e9f 100644
--- a/synapse/util/retryutils.py
+++ b/synapse/util/retryutils.py
@@ -12,7 +12,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-
+import synapse.util.logcontext
 from twisted.internet import defer
 
 from synapse.api.errors import CodeMessageException
@@ -173,4 +173,5 @@ class RetryDestinationLimiter(object):
                     "Failed to store set_destination_retry_timings",
                 )
 
-        store_retry_timings()
+        # we deliberately do this in the background.
+        synapse.util.logcontext.preserve_fn(store_retry_timings)()