summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorLukáš Ondráček <lukas.ondracek@nic.cz>2024-10-16 16:43:02 +0200
committerLukáš Ondráček <lukas.ondracek@nic.cz>2024-10-16 16:43:02 +0200
commitdacb982ab7c3167280b3e3df1292dde85f245906 (patch)
tree2f337faf5f737a1f8388169a6820e8188d109271 /python
parentdaemon/defer: cleanup heads of queues after idle (diff)
downloadknot-resolver-dacb982ab7c3167280b3e3df1292dde85f245906.tar.xz
knot-resolver-dacb982ab7c3167280b3e3df1292dde85f245906.zip
daemon/ratelimiting: lint fixes
Diffstat (limited to 'python')
-rw-r--r--python/knot_resolver/datamodel/config_schema.py4
-rw-r--r--python/knot_resolver/manager/manager.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/knot_resolver/datamodel/config_schema.py b/python/knot_resolver/datamodel/config_schema.py
index 415360b9..16adbc16 100644
--- a/python/knot_resolver/datamodel/config_schema.py
+++ b/python/knot_resolver/datamodel/config_schema.py
@@ -2,7 +2,6 @@ import logging
import os
import socket
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
-from knot_resolver.datamodel.rate_limiting_schema import RateLimitingSchema
from knot_resolver.constants import API_SOCK_FILE, RUN_DIR, VERSION
from knot_resolver.datamodel.cache_schema import CacheSchema
@@ -17,6 +16,7 @@ from knot_resolver.datamodel.management_schema import ManagementSchema
from knot_resolver.datamodel.monitoring_schema import MonitoringSchema
from knot_resolver.datamodel.network_schema import NetworkSchema
from knot_resolver.datamodel.options_schema import OptionsSchema
+from knot_resolver.datamodel.rate_limiting_schema import RateLimitingSchema
from knot_resolver.datamodel.templates import POLICY_CONFIG_TEMPLATE, WORKER_CONFIG_TEMPLATE
from knot_resolver.datamodel.types import EscapedStr, IntPositive, WritableDir
from knot_resolver.datamodel.view_schema import ViewSchema
@@ -107,7 +107,7 @@ class KresConfig(ConfigSchema):
logging: Logging and debugging configuration.
monitoring: Metrics exposisition configuration (Prometheus, Graphite)
lua: Custom Lua configuration.
- rate_limiting: ... TODO
+ rate_limiting: Configuration of rate limiting.
"""
version: int = 1
diff --git a/python/knot_resolver/manager/manager.py b/python/knot_resolver/manager/manager.py
index f295de25..105b2081 100644
--- a/python/knot_resolver/manager/manager.py
+++ b/python/knot_resolver/manager/manager.py
@@ -1,8 +1,8 @@
import asyncio
import logging
+import os
import sys
import time
-import os
from secrets import token_hex
from subprocess import SubprocessError
from typing import Any, Callable, List, Optional