File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 " )
You can’t perform that action at this time.
0 commit comments