Skip to content

Commit

Permalink
Shut down the driver's connection pool safely (#220)
Browse files Browse the repository at this point in the history
Shut down the EventLoopGroupConnectionPool using an API that doesn't call EventLoopFuture.wait() internally.
  • Loading branch information
gwynne committed May 24, 2024
1 parent e44fcc8 commit e2988a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FluentPostgresDriver/FluentPostgresDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ struct _FluentPostgresDriver<E: PostgresJSONEncoder, D: PostgresJSONDecoder>: Da
}

func shutdown() {
self.pool.shutdown()
try? self.pool.syncShutdownGracefully()
}
}

0 comments on commit e2988a8

Please sign in to comment.