Changed allocator property back to a constant. Bumped swift-nio dependency version.
This commit is contained in:
parent
8dac304dbd
commit
0d55af16d2
|
|
@ -39,7 +39,7 @@ let package = Package(
|
||||||
.library(name: "NIOTransportServices", targets: ["NIOTransportServices"])
|
.library(name: "NIOTransportServices", targets: ["NIOTransportServices"])
|
||||||
],
|
],
|
||||||
dependencies: [
|
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"),
|
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ internal struct BackpressureManager {
|
||||||
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
|
||||||
internal final class NIOTSConnectionChannel: StateManagedNWConnectionChannel {
|
internal final class NIOTSConnectionChannel: StateManagedNWConnectionChannel {
|
||||||
/// The `ByteBufferAllocator` for this `Channel`.
|
/// The `ByteBufferAllocator` for this `Channel`.
|
||||||
public var allocator = ByteBufferAllocator()
|
public let allocator = ByteBufferAllocator()
|
||||||
|
|
||||||
/// An `EventLoopFuture` that will complete when this channel is finally closed.
|
/// An `EventLoopFuture` that will complete when this channel is finally closed.
|
||||||
public var closeFuture: EventLoopFuture<Void> {
|
public var closeFuture: EventLoopFuture<Void> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue