Simplify async scheduler

This commit is contained in:
Christoph Hagen
2023-12-06 09:13:59 +01:00
parent 1fd63b8cc3
commit 6aaa9cb458
3 changed files with 19 additions and 28 deletions

View File

@@ -4,6 +4,9 @@ import Vapor
var env = Environment.production
try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
defer {
shutdown()
app.shutdown()
}
try configure(app)
try app.run()