Skip to content

Commit 132f9bd

Browse files
committed
apply swift-format
1 parent 3c0deff commit 132f9bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Sources/AWSLambdaRuntimeCore/Lambda+Codable.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public struct LambdaCodableAdapter<
8686
Output,
8787
Decoder: LambdaEventDecoder,
8888
Encoder: LambdaOutputEncoder
89-
>: Sendable, StreamingLambdaHandler where Handler.Event == Event, Handler.Output == Output, Encoder.Output == Output, Encoder: Sendable, Decoder: Sendable {
89+
>: Sendable, StreamingLambdaHandler
90+
where Handler.Event == Event, Handler.Output == Output, Encoder.Output == Output, Encoder: Sendable, Decoder: Sendable {
9091
@usableFromInline let handler: Handler
9192
@usableFromInline let encoder: Encoder
9293
@usableFromInline let decoder: Decoder

Sources/AWSLambdaRuntimeCore/LambdaHandlers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public struct ClosureHandler<Event: Decodable, Output>: LambdaHandler {
160160

161161
/// Initialize with a closure handler over a generic `Input` type, and a `Void` `Output`.
162162
/// - Parameter body: The handler function written as a closure.
163-
public init(body: @Sendable @escaping (Event, LambdaContext) async throws -> Void) where Output == Void {
163+
public init(body: @Sendable @escaping (Event, LambdaContext) async throws -> Void) where Output == Void {
164164
self.body = body
165165
}
166166

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
1615
// TODO: rewrite for Swift 6 concurrency
1716

1817
import Logging
@@ -143,7 +142,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
143142
}
144143
}
145144

146-
// FIXME: add support for graceful shutdown
145+
// FIXME: add support for graceful shutdown
147146
func nextInvocation() async throws -> (Invocation, Writer) {
148147
switch self.lambdaState {
149148
case .idle:
@@ -345,7 +344,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
345344
self.connectionState = .connected(channel, handler)
346345
defer {
347346
// for continuation in array {
348-
// // This causes an error in Swift 6
347+
// // This causes an error in Swift 6
349348
// // 'self'-isolated 'handler' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
350349
// continuation.resume(returning: handler)
351350
// }

0 commit comments

Comments
 (0)