Skip to content

Commit aebc527

Browse files
committed
Fix CI
1 parent ac89982 commit aebc527

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/AWSLambdaRuntimeCore/Lambda.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public enum Lambda {
5353
}
5454
return String(cString: value)
5555
}
56-
56+
57+
#if swift(>=5.5)
5758
// for testing and internal use
5859
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
5960
internal static func run<Handler: LambdaHandler>(configuration: Configuration = .init(), handlerType: Handler.Type) -> Result<Int, Error> {
@@ -65,6 +66,7 @@ public enum Lambda {
6566
return promise.futureResult
6667
})
6768
}
69+
#endif
6870

6971
// for testing and internal use
7072
internal static func run(configuration: Configuration = .init(), factory: @escaping HandlerFactory) -> Result<Int, Error> {

0 commit comments

Comments
 (0)