diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-04-06 08:58:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 08:58:18 -0400 |
commit | 44bb881096d7ad4d730e2dc31e0094c0324e0970 (patch) | |
tree | e5fdb161168dba08ec4f800ed5f0d44eb8a552cd /synapse/handlers/e2e_keys.py | |
parent | Fix reported bugbear: too broad exception assertion (#9753) (diff) | |
download | synapse-44bb881096d7ad4d730e2dc31e0094c0324e0970.tar.xz |
Add type hints to expiring cache. (#9730)
Diffstat (limited to 'synapse/handlers/e2e_keys.py')
-rw-r--r-- | synapse/handlers/e2e_keys.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 739653a3fa..92b18378fc 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -38,7 +38,6 @@ from synapse.types import ( ) from synapse.util import json_decoder, unwrapFirstError from synapse.util.async_helpers import Linearizer -from synapse.util.caches.expiringcache import ExpiringCache from synapse.util.retryutils import NotRetryingDestination if TYPE_CHECKING: @@ -1292,17 +1291,6 @@ class SigningKeyEduUpdater: # user_id -> list of updates waiting to be handled. self._pending_updates = {} # type: Dict[str, List[Tuple[JsonDict, JsonDict]]] - # Recently seen stream ids. We don't bother keeping these in the DB, - # but they're useful to have them about to reduce the number of spurious - # resyncs. - self._seen_updates = ExpiringCache( - cache_name="signing_key_update_edu", - clock=self.clock, - max_len=10000, - expiry_ms=30 * 60 * 1000, - iterable=True, - ) - async def incoming_signing_key_update( self, origin: str, edu_content: JsonDict ) -> None: |