Skip to content

Commit

Permalink
Adopt new APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Oct 6, 2024
1 parent 0f713ec commit 8d7b6ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Fluent/FluentProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ extension Application {
func shutdown(_ application: Application) {
application.databases.shutdown()
}

func shutdownAsync(_ application: Application) async {
await application.databases.shutdownAsync()
}
}

let application: Application
Expand Down
4 changes: 4 additions & 0 deletions Tests/FluentTests/SessionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,8 @@ struct StaticDatabase: DatabaseConfiguration, DatabaseDriver {
func shutdown() {
// Do nothing.
}

func shutdownAsync() async {
// Do nothing
}
}

0 comments on commit 8d7b6ad

Please sign in to comment.