Skip to content

Commit

Permalink
Increase availability
Browse files Browse the repository at this point in the history
  • Loading branch information
guoye-zhang committed Nov 4, 2024
1 parent c3884fb commit 48e0b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NIOResumableUploadDemo/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import NIOHTTPTypesHTTP1
import NIOPosix
import NIOResumableUpload

@available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)
@available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *)
final class UploadServerHandler: ChannelDuplexHandler {
typealias InboundIn = HTTPRequestPart
typealias OutboundIn = Never
Expand Down Expand Up @@ -96,7 +96,7 @@ guard let outputFile = CommandLine.arguments.dropFirst().first else {
exit(1)
}

if #available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *) {
if #available(macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) {
let uploadContext = HTTPResumableUploadContext(origin: "http://localhost:8081")

let group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
Expand Down

0 comments on commit 48e0b2b

Please sign in to comment.