Skip to content

Commit 949386f

Browse files
author
Sebastien Stormacq
committed
fix examples
1 parent 8615a63 commit 949386f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Examples/APIGatewayV2+LambdaAuthorizer/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
// For standalone usage, comment the line above and uncomment below:
1717
// .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
1818

19-
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.0.0"),
19+
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.4.0"),
2020
],
2121
targets: [
2222
.executableTarget(

Examples/APIGatewayV2+LambdaAuthorizer/Sources/AuthorizerLambda/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let policyAuthorizerHandler:
5858
//
5959
// This code doesn't perform any type of token validation. It should be used as a reference only.
6060
let simpleAuthorizerHandler:
61-
(APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
61+
@Sendable (APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
6262
(_: APIGatewayLambdaAuthorizerRequest, context: LambdaContext) in
6363

6464
context.logger.debug("+++ Simple Authorizer called +++")

Examples/HummingbirdLambda/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
platforms: [.macOS(.v15)],
99
dependencies: [
1010
// For local development (default)
11-
.package(name: "swift-aws-lambda-runtime", path: "../.."),
11+
// .package(name: "swift-aws-lambda-runtime", path: "../.."),
1212

1313
// For standalone usage, comment the line above and uncomment below:
1414
// .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
@@ -17,7 +17,7 @@ let package = Package(
1717
url: "https://github.com/hummingbird-project/hummingbird-lambda.git",
1818
branch: "main"
1919
),
20-
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.1.0"),
20+
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.4.0"),
2121
],
2222
targets: [
2323
.executableTarget(

Examples/Streaming+Codable/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
// For standalone usage, comment the line above and uncomment below:
1313
// .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
1414

15-
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.0.0"),
15+
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.4.0"),
1616
],
1717
targets: [
1818
.executableTarget(

Examples/Streaming+Codable/Sources/LambdaStreaming+Codable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Foundation
2828
/// This handler protocol supports response streaming and background work execution.
2929
/// Background work can be executed after closing the response stream by calling
3030
/// ``LambdaResponseStreamWriter/finish()`` or ``LambdaResponseStreamWriter/writeAndFinish(_:)``.
31-
public protocol StreamingLambdaHandlerWithEvent: _Lambda_SendableMetatype {
31+
public protocol StreamingLambdaHandlerWithEvent: Sendable, _Lambda_SendableMetatype {
3232
/// Generic input type that will be decoded from JSON.
3333
associatedtype Event: Decodable
3434

0 commit comments

Comments
 (0)