Skip to content

Commit 98ef22b

Browse files
author
Sebastien Stormacq
committed
remove default value in LambdaContext.init()
1 parent cf88ecf commit 98ef22b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Sources/AWSLambdaRuntime/LambdaContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public struct LambdaContext: CustomDebugStringConvertible, Sendable {
194194
public init(
195195
requestID: String,
196196
traceID: String,
197-
tenantID: String? = nil,
197+
tenantID: String?,
198198
invokedFunctionARN: String,
199199
deadline: LambdaClock.Instant,
200200
cognitoIdentity: String? = nil,
@@ -227,7 +227,7 @@ public struct LambdaContext: CustomDebugStringConvertible, Sendable {
227227
package static func __forTestsOnly(
228228
requestID: String,
229229
traceID: String,
230-
tenantID: String? = nil,
230+
tenantID: String?,
231231
invokedFunctionARN: String,
232232
timeout: Duration,
233233
logger: Logger

Tests/AWSLambdaRuntimeTests/Lambda+CodableTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct JSONTests {
6767
let context = LambdaContext.__forTestsOnly(
6868
requestID: UUID().uuidString,
6969
traceID: UUID().uuidString,
70+
tenantID: nil,
7071
invokedFunctionARN: "arn:",
7172
timeout: .milliseconds(6000),
7273
logger: self.logger

Tests/AWSLambdaRuntimeTests/LambdaContextTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ struct LambdaContextTests {
122122
let context = LambdaContext.__forTestsOnly(
123123
requestID: "test-request",
124124
traceID: "test-trace",
125+
tenantID: nil,
125126
invokedFunctionARN: "test-arn",
126127
timeout: .seconds(30),
127128
logger: Logger(label: "test")

0 commit comments

Comments
 (0)