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>
This commit is contained in:
Sebastiaan van Stijn
2026-03-29 16:47:31 +02:00
parent 5378f5427f
commit 38c77a9189

View File

@@ -15,7 +15,7 @@ import (
)
// NetlinkSocketsTimeout represents the default timeout duration for the sockets.
var NetlinkSocketsTimeout = 3 * time.Second
const NetlinkSocketsTimeout = 3 * time.Second
// initNamespace initializes a new network namespace.
var initNamespace = sync.OnceValues(initHandles)