Skip to content

Commit

Permalink
fix: adapt to latest dependency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lovetodream committed Jun 18, 2024
1 parent 3591621 commit edd1db5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.4"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.58.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.19.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.25.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.2.0"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.4.1"),
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.21.4"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.67.0"),
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.21.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.27.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.4.0"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.6.0"),
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.21.5"),
],
targets: [
.target(name: "_PBKDF2", dependencies: [.product(name: "Crypto", package: "swift-crypto")]),
Expand Down
2 changes: 1 addition & 1 deletion Sources/OracleNIO/Helper/Crypto.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func getDerivedKey(key: Data, salt: [UInt8], length: Int, iterations: Int) throw
/// encoding.
func getSignature(key: String, payload: String) throws -> String {
let payload = Array(payload.utf8)
return try _RSA.Signing.PrivateKey(pemRepresentation: key)
return try _RSA.Signing.PrivateKey(unsafePEMRepresentation: key)
.signature(for: payload, padding: .insecurePKCS1v1_5)
.rawRepresentation
.base64EncodedString()
Expand Down
2 changes: 1 addition & 1 deletion Sources/OracleNIO/Pool/OracleClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public final class OracleClient: Sendable, Service {
expected: false, desired: true, ordering: .relaxed)
precondition(!atomicOp.original, "OracleClient.run() should just be called once!")

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

0 comments on commit edd1db5

Please sign in to comment.