Skip to content

Commit afab510

Browse files
authored
Rename Lambda.Lifecycle to LambdaRuntime (#232)
1 parent b757de0 commit afab510

File tree

7 files changed

+229
-231
lines changed

7 files changed

+229
-231
lines changed

Sources/AWSLambdaRuntimeCore/Lambda.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ public enum Lambda {
7676

7777
var result: Result<Int, Error>!
7878
MultiThreadedEventLoopGroup.withCurrentThreadAsEventLoop { eventLoop in
79-
let lifecycle = Lifecycle(eventLoop: eventLoop, logger: logger, configuration: configuration, factory: factory)
79+
let runtime = LambdaRuntime(eventLoop: eventLoop, logger: logger, configuration: configuration, factory: factory)
8080
#if DEBUG
8181
let signalSource = trap(signal: configuration.lifecycle.stopSignal) { signal in
8282
logger.info("intercepted signal: \(signal)")
83-
lifecycle.shutdown()
83+
runtime.shutdown()
8484
}
8585
#endif
8686

87-
lifecycle.start().flatMap {
88-
lifecycle.shutdownFuture
87+
runtime.start().flatMap {
88+
runtime.shutdownFuture
8989
}.whenComplete { lifecycleResult in
9090
#if DEBUG
9191
signalSource.cancel()

Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift

Lines changed: 0 additions & 197 deletions
This file was deleted.

0 commit comments

Comments
 (0)