mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 12:34:58 -04:00
Add type hints to expiring cache. (#9730)
This commit is contained in:
parent
024f121b74
commit
44bb881096
8 changed files with 65 additions and 54 deletions
|
@ -102,7 +102,7 @@ class FederationClient(FederationBase):
|
|||
max_len=1000,
|
||||
expiry_ms=120 * 1000,
|
||||
reset_expiry_on_get=False,
|
||||
)
|
||||
) # type: ExpiringCache[str, EventBase]
|
||||
|
||||
def _clear_tried_cache(self):
|
||||
"""Clear pdu_destination_tried cache"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue