Skip to content

Commit 1d4455f

Browse files
committed
Rename Lambda+JSON.swift to Lambda+Codable.swift, change return type of LambdaContext getRemainingType() to Duration
1 parent bb7fe7c commit 1d4455f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Sources/AWSLambdaRuntimeCore/LambdaContext.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public struct LambdaContext: CustomDebugStringConvertible, Sendable {
108108
)
109109
}
110110

111-
public func getRemainingTime() -> TimeAmount {
111+
public func getRemainingTime() -> Duration {
112112
let deadline = self.deadline.millisSinceEpoch
113113
let now = DispatchWallTime.now().millisSinceEpoch
114114

0 commit comments

Comments
 (0)