Skip to content

Commit 2362c28

Browse files
authored
Shut down the driver's connection pool safely (#94)
Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally.
1 parent 9e924b3 commit 2362c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FluentSQLiteDriver/FluentSQLiteDriver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct FluentSQLiteDriver: DatabaseDriver {
2727
}
2828

2929
func shutdown() {
30-
self.pool.shutdown()
30+
try? self.pool.syncShutdownGracefully()
3131
}
3232
}
3333

0 commit comments

Comments
 (0)