Skip to content

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

+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)