Skip to content

Commit 6c3d0a9

Browse files
authored
Update ServiceLifecycle to 2.5.0 (#484)
1 parent 5f541d0 commit 6c3d0a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let package = Package(
2222
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"),
2323
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.4.1"),
2424
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"),
25-
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.4.1"),
25+
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.5.0"),
2626
],
2727
targets: [
2828
.target(

Diff for: Sources/PostgresNIO/Pool/PostgresClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public final class PostgresClient: Sendable, ServiceLifecycle.Service {
419419
let atomicOp = self.runningAtomic.compareExchange(expected: false, desired: true, ordering: .relaxed)
420420
precondition(!atomicOp.original, "PostgresClient.run() should just be called once!")
421421

422-
await cancelOnGracefulShutdown {
422+
await cancelWhenGracefulShutdown {
423423
await self.pool.run()
424424
}
425425
}

0 commit comments

Comments
 (0)