mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Avoid deprecated API and remove unnecessary code
This commit is contained in:
parent
622c62536a
commit
f30b01c298
2 changed files with 2 additions and 7 deletions
|
@ -63,11 +63,7 @@ class EncryptionBuilder : EncryptionBuilderInterface {
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun negotiateCompressionAlgorithm(producerOptions: ProducerOptions): CompressionAlgorithm {
|
fun negotiateCompressionAlgorithm(producerOptions: ProducerOptions): CompressionAlgorithm {
|
||||||
val compressionAlgorithmOverride = producerOptions.compressionAlgorithmOverride
|
return producerOptions.compressionAlgorithmOverride
|
||||||
return compressionAlgorithmOverride
|
|
||||||
?: getPolicy().compressionAlgorithmPolicy.defaultCompressionAlgorithm()
|
|
||||||
|
|
||||||
// TODO: Negotiation
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,8 +323,7 @@ class CertifyCertificate {
|
||||||
}
|
}
|
||||||
|
|
||||||
return certificationKey.getSecretKey(certificationPubKey.keyIdentifier)
|
return certificationKey.getSecretKey(certificationPubKey.keyIdentifier)
|
||||||
?: throw MissingSecretKeyException(
|
?: throw MissingSecretKeyException(fingerprint, certificationPubKey.keyIdentifier)
|
||||||
fingerprint, certificationPubKey.keyIdentifier.keyId)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue