refactor: revert redis temp locker logic (#2670)

This commit is contained in:
Abhishek Marrivagu
2023-10-23 20:18:47 +05:30
committed by GitHub
parent adad77f043
commit eaa9720520
20 changed files with 607 additions and 262 deletions

View File

@ -120,14 +120,6 @@ pub enum KmsError {
/// The KMS client has not been initialized.
#[error("The KMS client has not been initialized")]
KmsClientNotInitialized,
/// The KMS client has not been initialized.
#[error("Hex decode failed")]
HexDecodeFailed,
/// The KMS client has not been initialized.
#[error("Utf8 decode failed")]
Utf8DecodeFailed,
}
impl KmsConfig {
@ -148,7 +140,7 @@ impl KmsConfig {
/// A wrapper around a KMS value that can be decrypted.
#[derive(Clone, Debug, Default, serde::Deserialize, Eq, PartialEq)]
#[serde(transparent)]
pub struct KmsValue(pub Secret<String>);
pub struct KmsValue(Secret<String>);
impl common_utils::ext_traits::ConfigExt for KmsValue {
fn is_empty_after_trim(&self) -> bool {