File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Examples/ServiceLifecycle/Sources Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ struct LambdaFunction {
76
76
// See: https://github.com/vapor/postgres-nio/issues/489#issuecomment-2186509773
77
77
result = try await timeout ( deadline: . seconds( 3 ) ) {
78
78
// check if table exists
79
+ // TODO: ideally, I want to do this once, after serviceGroup.run() is done
80
+ // but before the handler is called
79
81
logger. trace ( " Checking database " )
80
82
try await prepareDatabase ( )
81
83
@@ -94,7 +96,6 @@ struct LambdaFunction {
94
96
/// At first run, this functions checks the database exist and is populated.
95
97
/// This is useful for demo purposes. In real life, the database will contain data already.
96
98
private func prepareDatabase( ) async throws {
97
- logger. trace ( " Preparing to the database " )
98
99
do {
99
100
100
101
// initial creation of the table. This will fails if it already exists
You can’t perform that action at this time.
0 commit comments