mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 16:36:03 -04:00
Add type hints to response cache. (#8507)
This commit is contained in:
parent
66ac4b1e34
commit
1781bbe319
9 changed files with 48 additions and 34 deletions
|
@ -92,7 +92,7 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
|
|||
if self.CACHE:
|
||||
self.response_cache = ResponseCache(
|
||||
hs, "repl." + self.NAME, timeout_ms=30 * 60 * 1000
|
||||
)
|
||||
) # type: ResponseCache[str]
|
||||
|
||||
# We reserve `instance_name` as a parameter to sending requests, so we
|
||||
# assert here that sub classes don't try and use the name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue