summary refs log tree commit diff
path: root/synapse/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-18 10:11:24 +0000
committerErik Johnston <erik@matrix.org>2015-02-18 10:11:24 +0000
commit4fd176a41db9f3b9073db172e20c8ede40b5f5f4 (patch)
tree9bba915a426ac85ec0177479016eba9cd9d064b7 /synapse/util
parentDocs. (diff)
downloadsynapse-4fd176a41db9f3b9073db172e20c8ede40b5f5f4.tar.xz
More docs
Diffstat (limited to '')
-rw-r--r--synapse/util/retryutils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/util/retryutils.py b/synapse/util/retryutils.py
index 08285e811d..366f7c48a7 100644
--- a/synapse/util/retryutils.py
+++ b/synapse/util/retryutils.py
@@ -87,7 +87,11 @@ class RetryDestinationLimiter(object):
     def __init__(self, destination, clock, store, retry_interval,
                  min_retry_interval=5000, max_retry_interval=60 * 60 * 1000,
                  multiplier_retry_interval=2,):
-        """
+        """Marks the destination as "down" if an exception is thrown in the
+        context, except for CodeMessageException with code < 500.
+
+        If no exception is raised, marks the destination as "up".
+
         Args:
             destination (str)
             clock (Clock)