From e2988a8c960196eca2891f3a0bb1caad9044e7ea Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Fri, 24 May 2024 05:57:27 -0500 Subject: [PATCH] Shut down the driver's connection pool safely (#220) Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally. --- Sources/FluentPostgresDriver/FluentPostgresDriver.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FluentPostgresDriver/FluentPostgresDriver.swift b/Sources/FluentPostgresDriver/FluentPostgresDriver.swift index 400ae5a..d375eba 100644 --- a/Sources/FluentPostgresDriver/FluentPostgresDriver.swift +++ b/Sources/FluentPostgresDriver/FluentPostgresDriver.swift @@ -25,6 +25,6 @@ struct _FluentPostgresDriver: Da } func shutdown() { - self.pool.shutdown() + try? self.pool.syncShutdownGracefully() } }