mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 06:45:06 -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
|
@ -175,7 +175,7 @@ class PreviewUrlResource(DirectServeJsonResource):
|
|||
clock=self.clock,
|
||||
# don't spider URLs more often than once an hour
|
||||
expiry_ms=ONE_HOUR,
|
||||
)
|
||||
) # type: ExpiringCache[str, ObservableDeferred]
|
||||
|
||||
if self._worker_run_media_background_jobs:
|
||||
self._cleaner_loop = self.clock.looping_call(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue