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

Commit

Permalink
Fix exception when resetting retry timings
Browse files Browse the repository at this point in the history
Fixes:
> TypeError: set_destination_retry_timings() missing 1 required positional
argument: 'retry_interval'

Introduced in #6016.
  • Loading branch information
richvdh committed Sep 20, 2019
1 parent aeb40f3 commit 9d94313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6072.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a 'failure_ts' column to the 'destinations' database table.
2 changes: 1 addition & 1 deletion synapse/federation/transport/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def authenticate_request(self, request, content):
async def _reset_retry_timings(self, origin):
try:
logger.info("Marking origin %r as up", origin)
await self.store.set_destination_retry_timings(origin, 0, 0)
await self.store.set_destination_retry_timings(origin, None, 0, 0)
except Exception:
logger.exception("Error resetting retry timings on %s", origin)

Expand Down

0 comments on commit 9d94313

Please sign in to comment.