Skip to content

Commit 4712324

Browse files
author
Andrea Scuderi
committed
Remove redundant code
1 parent e6b2040 commit 4712324

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Sources/BreezeLambdaAPI/BreezeLambdaAPI.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,7 @@ public actor BreezeLambdaAPI<T: BreezeCodable>: Service {
8787
///
8888
/// The internal ServiceGroup will handle the lifecycle of the BreezeLambdaAPI, including starting and stopping the service gracefully.
8989
public func run() async throws {
90-
logger.info("Starting BreezeLambdaAPI...")
91-
do {
92-
try await serviceGroup.run()
93-
} catch {
94-
try dynamoDBService.syncShutdown()
95-
logger.error("BreezeLambdaAPI failed with error: \(error.localizedDescription)")
96-
throw error
97-
}
90+
try await serviceGroup.run()
9891
logger.info("BreezeLambdaAPI is stopped successfully")
9992
}
10093
}

0 commit comments

Comments
 (0)