Skip to content

Commit 7b04b87

Browse files
committed
Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally.
1 parent e44fcc8 commit 7b04b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/FluentPostgresDriver/FluentPostgresDriver.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ struct _FluentPostgresDriver<E: PostgresJSONEncoder, D: PostgresJSONDecoder>: Da
2525
}
2626

2727
func shutdown() {
28-
self.pool.shutdown()
28+
try? self.pool.syncShutdownGracefully()
2929
}
3030
}

0 commit comments

Comments
 (0)