From 46605f4a24d09825b6a6cfb35ef05041ad10bccf Mon Sep 17 00:00:00 2001 From: libretto Date: Tue, 5 Sep 2023 20:50:08 +0300 Subject: [PATCH] fixup --- karapace.config.json | 3 +-- karapace/config.py | 5 ++--- karapace/statsd.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/karapace.config.json b/karapace.config.json index 798ab2ffe..f07af6710 100644 --- a/karapace.config.json +++ b/karapace.config.json @@ -33,7 +33,6 @@ "statsd_host": "127.0.0.1", "statsd_port": 8125, "prometheus_host": "127.0.0.1", - "prometheus_port": 8005 - + "prometheus_port": 8005, } diff --git a/karapace/config.py b/karapace/config.py index 1fc7f1a59..b3016eb07 100644 --- a/karapace/config.py +++ b/karapace/config.py @@ -82,9 +82,8 @@ class Config(TypedDict): prometheus_host: str | None prometheus_port: int | None - -sentry: NotRequired[Mapping[str, object]] -tags: NotRequired[Mapping[str, object]] + sentry: NotRequired[Mapping[str, object]] + tags: NotRequired[Mapping[str, object]] class ConfigDefaults(Config, total=False): diff --git a/karapace/statsd.py b/karapace/statsd.py index fcd3c8572..36fdc24a6 100644 --- a/karapace/statsd.py +++ b/karapace/statsd.py @@ -31,7 +31,7 @@ def __init__( port: int = STATSD_PORT, ) -> None: super().__init__(config) - self._tags: Final[dict] = config.get("tags", {}) + self._tags: Final = config.get("tags", {}) _host = config.get("statsd_host") if "statsd_host" in config else host _port = config.get("statsd_port") if "statsd_port" in config else port self._dest_addr: Final = (_host, _port)