]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
datamodel: network: removed layer from QUICSchema
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 2 Feb 2026 10:43:11 +0000 (11:43 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 2 Feb 2026 10:57:22 +0000 (11:57 +0100)
There is no reason for two layers here.

python/knot_resolver/datamodel/network_schema.py

index 787ee67ddf5f65d9bbf1cda9ec52abd25467df1a..4b957335f48f88f66b7c9516eba09526fc74271e 100644 (file)
@@ -50,22 +50,15 @@ class AddressRenumberingSchema(ConfigSchema):
 
 
 class QUICSchema(ConfigSchema):
-    class Raw(ConfigSchema):
-        """
-        Optional DoQ configuration.
-
-        ---
-        max_conns: Maximum number of active connections a single worker is allowed to accept.
-        max_streams: Maximum number of concurrent streams a connection is allowed to open.
-        require_retry: Require address validation for unknown source addresses.
-                        This adds a 1-RTT delay to connection establishment.
-        """
-
-        max_conns: Int1_4096 = Int1_4096(1024)
-        max_streams: Int1_4096 = Int1_4096(1024)
-        require_retry: bool = False
+    """
+    Optional DoQ configuration.
 
-    _LAYER = Raw
+    ---
+    max_conns: Maximum number of active connections a single worker is allowed to accept.
+    max_streams: Maximum number of concurrent streams a connection is allowed to open.
+    require_retry: Require address validation for unknown source addresses.
+                    This adds a 1-RTT delay to connection establishment.
+    """
 
     max_conns: Int1_4096 = Int1_4096(1024)
     max_streams: Int1_4096 = Int1_4096(1024)