summary refs log tree commit diff
path: root/synapse/config/_util.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-21 14:53:23 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-21 14:53:23 +0100
commit854764073c984da8d7f5daf713a550b2c9691f11 (patch)
treee3f8e6bca4f3f4256a558ee486f56859bcb7cf60 /synapse/config/_util.py
parentMerge commit '8238b55e0' into anoa/dinsic_release_1_21_x (diff)
parent1.21.0 (diff)
downloadsynapse-854764073c984da8d7f5daf713a550b2c9691f11.tar.xz
Merge commit 'cc40a59b4' into anoa/dinsic_release_1_21_x
* commit 'cc40a59b4':
  1.21.0
  Add prometheus metrics to track federation delays (#8430)
  Make token serializing/deserializing async (#8427)
  Allow additional SSO properties to be passed to the client (#8413)
  changelog
  Add an improved "forward extremities" metric
  Rewrite BucketCollector
  Fix _exposition.py to stop stripping samples
  Drop support for ancient prometheus_client (#8426)
  Various clean ups to room stream tokens. (#8423)
  changelog
  Report state res metrics to Prometheus and log
  Move Measure calls into `resolve_events_with_store`
  Expose a `get_resource_usage` method in `Measure`
  Move `resolve_events_with_store` into StateResolutionHandler
Diffstat (limited to 'synapse/config/_util.py')
-rw-r--r--synapse/config/_util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/config/_util.py b/synapse/config/_util.py

index cd31b1c3c9..c74969a977 100644 --- a/synapse/config/_util.py +++ b/synapse/config/_util.py
@@ -12,7 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Any, List +from typing import Any, Iterable import jsonschema @@ -20,7 +20,9 @@ from synapse.config._base import ConfigError from synapse.types import JsonDict -def validate_config(json_schema: JsonDict, config: Any, config_path: List[str]) -> None: +def validate_config( + json_schema: JsonDict, config: Any, config_path: Iterable[str] +) -> None: """Validates a config setting against a JsonSchema definition This can be used to validate a section of the config file against a schema