Browse code

daemon/libnetwork/ns: make NetlinkSocketsTimeout a const

It's never updated, so let's make it clear that that's the case.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2026/03/29 23:47:31
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@ import (
15 15
 )
16 16
 
17 17
 // NetlinkSocketsTimeout represents the default timeout duration for the sockets.
18
-var NetlinkSocketsTimeout = 3 * time.Second
18
+const NetlinkSocketsTimeout = 3 * time.Second
19 19
 
20 20
 // initNamespace initializes a new network namespace.
21 21
 var initNamespace = sync.OnceValues(initHandles)