Skip to content

Commit 21b6ca7

Browse files
author
Sebastien Stormacq
committed
swift format
1 parent 07b0d7f commit 21b6ca7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Examples/Streaming+APIGateway/Sources/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
3030
context: LambdaContext
3131
) async throws {
3232

33-
// the payload here is an API Gateway V1 request
33+
// the payload here is an API Gateway V1 request
3434
// Check the body of the request to extract the business event
3535
let payload = try JSONDecoder().decode(APIGatewayRequest.self, from: Data(event.readableBytesView))
3636
let _ = payload.body
37-
37+
3838
// Send HTTP status code and headers before streaming the response body
3939
try await responseWriter.writeStatusAndHeaders(
4040
StreamingLambdaStatusAndHeadersResponse(

Examples/Streaming+FunctionUrl/Sources/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
3030
context: LambdaContext
3131
) async throws {
3232

33-
// The payload here is a FunctionURLRequest.
33+
// The payload here is a FunctionURLRequest.
3434
// Check the body parameters for the business event
3535
let payload = try JSONDecoder().decode(FunctionURLRequest.self, from: Data(event.readableBytesView))
3636
let _ = payload.body
37-
37+
3838
// Send HTTP status code and headers before streaming the response body
3939
try await responseWriter.writeStatusAndHeaders(
4040
StreamingLambdaStatusAndHeadersResponse(

0 commit comments

Comments
 (0)