Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2988a8

Browse files
authored
Shut down the driver's connection pool safely (#220)
Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally.
1 parent e44fcc8 commit e2988a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Sources/FluentPostgresDriver/FluentPostgresDriver.swift

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /