From b4cce02c8db8136c54197508bfe003a2ed57c5e4 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Tue, 17 Dec 2024 12:12:40 +0000 Subject: [PATCH] Remove accidental static var This was never written to, so we don't need it, and it's a Sendable violation. --- Sources/NIOPosix/Socket.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NIOPosix/Socket.swift b/Sources/NIOPosix/Socket.swift index b8434d62e99..6ae3de3c568 100644 --- a/Sources/NIOPosix/Socket.swift +++ b/Sources/NIOPosix/Socket.swift @@ -23,7 +23,7 @@ class Socket: BaseSocket, SocketProtocol { typealias SocketType = Socket /// The maximum number of bytes to write per `writev` call. - static var writevLimitBytes = Int(Int32.max) + static let writevLimitBytes = Int(Int32.max) /// The maximum number of `IOVector`s to write per `writev` call. static let writevLimitIOVectors: Int = Posix.UIO_MAXIOV