From ce5d042a3326cfa109313457135b4e32053bfbf3 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Fri, 24 Jan 2025 14:10:43 +0000 Subject: [PATCH] Remove accidental static var (#3086) 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 b8434d62e..6ae3de3c5 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