mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 09:10:52 +00:00
Remove get_destination_retry_timings cache
Currently we rely on the master to invalidate this cache promptly. However, after having moved most federation endpoints off of master this no longer happens, causing outbound fedeariont to get blackholed. Fixes #3798
This commit is contained in:
parent
05b9937cd7
commit
b9158ac2bf
1 changed files with 0 additions and 5 deletions
|
@ -156,7 +156,6 @@ class TransactionStore(SQLBaseStore):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@cached(max_entries=10000)
|
|
||||||
def get_destination_retry_timings(self, destination):
|
def get_destination_retry_timings(self, destination):
|
||||||
"""Gets the current retry timings (if any) for a given destination.
|
"""Gets the current retry timings (if any) for a given destination.
|
||||||
|
|
||||||
|
@ -212,10 +211,6 @@ class TransactionStore(SQLBaseStore):
|
||||||
retry_last_ts, retry_interval):
|
retry_last_ts, retry_interval):
|
||||||
self.database_engine.lock_table(txn, "destinations")
|
self.database_engine.lock_table(txn, "destinations")
|
||||||
|
|
||||||
self._invalidate_cache_and_stream(
|
|
||||||
txn, self.get_destination_retry_timings, (destination,)
|
|
||||||
)
|
|
||||||
|
|
||||||
# We need to be careful here as the data may have changed from under us
|
# We need to be careful here as the data may have changed from under us
|
||||||
# due to a worker setting the timings.
|
# due to a worker setting the timings.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue