Skip to content

Commit 7e00b7d

Browse files
committed
fix package formatting
1 parent 0ecad75 commit 7e00b7d

6 files changed

+18
-33
lines changed

Sources/AWSLambdaRuntimeCore/ControlPlaneRequest.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ enum ControlPlaneResponse: Hashable {
2828
case error(ErrorResponse)
2929
}
3030

31-
package
32-
struct InvocationMetadata: Hashable
33-
{
31+
package struct InvocationMetadata: Hashable {
3432
package let requestID: String
3533
package let deadlineInMillisSinceEpoch: Int64
3634
package let invokedFunctionARN: String

Sources/AWSLambdaRuntimeCore/Lambda.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ import ucrt
3030
#endif
3131

3232
public enum Lambda {
33-
package
34-
static func runLoop<RuntimeClient: LambdaRuntimeClientProtocol, Handler>(
35-
runtimeClient: RuntimeClient,
36-
handler: Handler,
37-
logger: Logger
38-
) async throws where Handler: StreamingLambdaHandler
39-
{
33+
package static func runLoop<RuntimeClient: LambdaRuntimeClientProtocol, Handler>(
34+
runtimeClient: RuntimeClient,
35+
handler: Handler,
36+
logger: Logger
37+
) async throws where Handler: StreamingLambdaHandler {
4038
var handler = handler
4139

4240
while !Task.isCancelled {

Sources/AWSLambdaRuntimeCore/LambdaContext.swift

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,13 @@ public struct LambdaContext: CustomDebugStringConvertible, Sendable {
121121
}
122122

123123
/// This interface is not part of the public API and must not be used by adopters. This API is not part of semver versioning.
124-
package
125-
static func __forTestsOnly(
126-
requestID: String,
127-
traceID: String,
128-
invokedFunctionARN: String,
129-
timeout: DispatchTimeInterval,
130-
logger: Logger
131-
) -> LambdaContext
132-
{
124+
package static func __forTestsOnly(
125+
requestID: String,
126+
traceID: String,
127+
invokedFunctionARN: String,
128+
timeout: DispatchTimeInterval,
129+
logger: Logger
130+
) -> LambdaContext {
133131
LambdaContext(
134132
requestID: requestID,
135133
traceID: traceID,

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ private final class LambdaChannelHandler<Delegate: LambdaChannelHandlerDelegate>
484484
}
485485

486486
func reportError(
487-
isolation: isolated (any Actor)? =
488-
#isolation,
487+
isolation: isolated (any Actor)? = #isolation,
489488
_ error: any Error,
490489
requestID: String
491490
) async throws {

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClientProtocol.swift

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,20 @@
1414

1515
import NIOCore
1616

17-
package
18-
protocol LambdaRuntimeClientResponseStreamWriter: LambdaResponseStreamWriter
19-
{
17+
package protocol LambdaRuntimeClientResponseStreamWriter: LambdaResponseStreamWriter {
2018
func write(_ buffer: ByteBuffer) async throws
2119
func finish() async throws
2220
func writeAndFinish(_ buffer: ByteBuffer) async throws
2321
func reportError(_ error: any Error) async throws
2422
}
2523

26-
package
27-
protocol LambdaRuntimeClientProtocol
28-
{
24+
package protocol LambdaRuntimeClientProtocol {
2925
associatedtype Writer: LambdaRuntimeClientResponseStreamWriter
3026

3127
func nextInvocation() async throws -> (Invocation, Writer)
3228
}
3329

34-
package
35-
struct Invocation
36-
{
30+
package struct Invocation {
3731
package var metadata: InvocationMetadata
3832
package var event: ByteBuffer
3933

Sources/AWSLambdaRuntimeCore/LambdaRuntimeError.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
package
16-
struct LambdaRuntimeError: Error
17-
{
15+
package struct LambdaRuntimeError: Error {
1816
package enum Code {
1917
case closingRuntimeClient
2018

0 commit comments

Comments
 (0)