Changed allocator property back to a constant. Bumped swift-nio dependency version.

This commit is contained in:
Rafael Cepeda 2025-05-13 13:28:40 +01:00
parent 8dac304dbd
commit 0d55af16d2
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ let package = Package(
.library(name: "NIOTransportServices", targets: ["NIOTransportServices"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", branch: "main"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.83.0"),
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"),
],
targets: [

View File

@ -129,7 +129,7 @@ internal struct BackpressureManager {
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
internal final class NIOTSConnectionChannel: StateManagedNWConnectionChannel {
/// The `ByteBufferAllocator` for this `Channel`.
public var allocator = ByteBufferAllocator()
public let allocator = ByteBufferAllocator()
/// An `EventLoopFuture` that will complete when this channel is finally closed.
public var closeFuture: EventLoopFuture<Void> {