Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Call RetryLimiter correctly
Browse files Browse the repository at this point in the history
Fixes a regression introduced in #5335.
  • Loading branch information
richvdh committed Jun 4, 2019
1 parent df9c100 commit 005e508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.d/5340.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a bug where we could rapidly mark a server as unreachable even though it was only down for a few minutes.

7 changes: 6 additions & 1 deletion synapse/util/retryutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ def get_retry_limiter(destination, clock, store, ignore_backoff=False, **kwargs)

defer.returnValue(
RetryDestinationLimiter(
destination, clock, store, retry_interval, backoff_on_failure, **kwargs
destination,
clock,
store,
retry_interval,
backoff_on_failure=backoff_on_failure,
**kwargs
)
)

Expand Down

0 comments on commit 005e508

Please sign in to comment.