Skip to content

Commit

Permalink
Update ServiceLifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfett committed Jun 14, 2024
1 parent e7b9a08 commit 382897c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.4.1"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.4.1"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.5.0"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgresNIO/Pool/PostgresClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public final class PostgresClient: Sendable, ServiceLifecycle.Service {
let atomicOp = self.runningAtomic.compareExchange(expected: false, desired: true, ordering: .relaxed)
precondition(!atomicOp.original, "PostgresClient.run() should just be called once!")

await cancelOnGracefulShutdown {
await cancelWhenGracefulShutdown {
await self.pool.run()
}
}
Expand Down

0 comments on commit 382897c

Please sign in to comment.