Skip to content

Commit 279f068

Browse files
author
Andrea Scuderi
committed
Remove leftovers
1 parent e2bb315 commit 279f068

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/BreezeDynamoDBService/BreezeDynamoDBService.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public struct BreezeDynamoDBService: BreezeDynamoDBServing {
3333
private let logger: Logger
3434
private let awsClient: AWSClient
3535
private let httpClient: HTTPClient
36-
private var isShutdown = false
3736

3837
/// Initializes the BreezeDynamoDBService with the provided configuration.
3938
/// - Parameters:

Sources/BreezeLambdaAPI/BreezeAPIConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public struct BreezeAPIConfiguration: APIConfiguring {
104104
/// This method is used to retrieve the name of the primary key in the DynamoDB table that will be used by the Breeze Lambda API.
105105
/// - Important: The key name is essential for identifying items in the DynamoDB table.
106106
func keyName() throws -> String {
107-
guard let tableName = Lambda.env("DYNAMO_DB_KEY") else {
107+
guard let keyName = Lambda.env("DYNAMO_DB_KEY") else {
108108
throw BreezeLambdaAPIError.keyNameNotFound
109109
}
110-
return tableName
110+
return keyName
111111
}
112112

113113
/// Returns the endpoint for the Breeze Lambda API.

Sources/BreezeLambdaAPI/BreezeLambdaAPI.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public actor BreezeLambdaAPI<T: BreezeCodable>: Service {
9494
try await serviceGroup.run()
9595
} catch {
9696
try dynamoDBService.syncShutdown()
97+
logger.error("BreezeLambdaAPI failed with error: \(error.localizedDescription)")
9798
throw error
9899
}
99100
logger.info("BreezeLambdaAPI is stopped successfully")

0 commit comments

Comments
 (0)