From 72e94c6ce9013a1034a1cb8aa129681f1a960ff5 Mon Sep 17 00:00:00 2001 From: Gus Cairo Date: Thu, 10 Apr 2025 16:01:27 +0100 Subject: [PATCH] Turn vars into lets --- .../NIOTransportServices/StateManagedListenerChannel.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/NIOTransportServices/StateManagedListenerChannel.swift b/Sources/NIOTransportServices/StateManagedListenerChannel.swift index 42dcb7c..4f19c9e 100644 --- a/Sources/NIOTransportServices/StateManagedListenerChannel.swift +++ b/Sources/NIOTransportServices/StateManagedListenerChannel.swift @@ -67,7 +67,8 @@ internal class StateManagedListenerChannel: S /// The TLS options for this listener. internal let tlsOptions: NWProtocolTLS.Options? - internal var nwParametersConfigurator: (@Sendable (NWParameters) -> Void)? + /// A customization point for this listener's `NWParameters`. + internal let nwParametersConfigurator: (@Sendable (NWParameters) -> Void)? /// The `DispatchQueue` that socket events for this connection will be dispatched onto. internal let connectionQueue: DispatchQueue @@ -115,7 +116,8 @@ internal class StateManagedListenerChannel: S /// The TLS options to use for child channels. internal let childTLSOptions: NWProtocolTLS.Options? - internal var childNWParametersConfigurator: (@Sendable (NWParameters) -> Void)? + /// A customization point for each child's `NWParameters`. + internal let childNWParametersConfigurator: (@Sendable (NWParameters) -> Void)? /// The cache of the local and remote socket addresses. Must be accessed using _addressCacheLock. internal var addressCache = AddressCache(local: nil, remote: nil)