Skip to content

Commit

Permalink
Shut down the driver's connection pool safely (#94)
Browse files Browse the repository at this point in the history
Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally.
  • Loading branch information
gwynne authored May 24, 2024
1 parent 9e924b3 commit 2362c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FluentSQLiteDriver/FluentSQLiteDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct FluentSQLiteDriver: DatabaseDriver {
}

func shutdown() {
self.pool.shutdown()
try? self.pool.syncShutdownGracefully()
}
}

Expand Down

0 comments on commit 2362c28

Please sign in to comment.