diff options
author | Sean Quah <seanq@element.io> | 2021-11-30 12:18:02 +0000 |
---|---|---|
committer | Sean Quah <seanq@element.io> | 2021-11-30 12:18:02 +0000 |
commit | 07580acdc08807d623f0fe4953dbed34b6ff2d87 (patch) | |
tree | 976c48084bd9ef2980410bbc4b9744c28bf6a181 /synapse/config/cache.py | |
parent | Add tests for remote spaces (diff) | |
parent | Support the stable /hierarchy endpoint from MSC2946 (#11329) (diff) | |
download | synapse-07580acdc08807d623f0fe4953dbed34b6ff2d87.tar.xz |
Merge branch 'develop' into squah/leave_space_admin_api
Diffstat (limited to 'synapse/config/cache.py')
-rw-r--r-- | synapse/config/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/cache.py b/synapse/config/cache.py index d119427ad8..f054455534 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py @@ -15,7 +15,7 @@ import os import re import threading -from typing import Callable, Dict +from typing import Callable, Dict, Optional from synapse.python_dependencies import DependencyException, check_requirements @@ -217,7 +217,7 @@ class CacheConfig(Config): expiry_time = cache_config.get("expiry_time") if expiry_time: - self.expiry_time_msec = self.parse_duration(expiry_time) + self.expiry_time_msec: Optional[int] = self.parse_duration(expiry_time) else: self.expiry_time_msec = None |