Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay S authored and Akshay S committed May 14, 2024
1 parent 2dbbd3d commit b55f4b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions crates/hyperswitch_domain_models/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ pub enum StorageError {
// TODO: deprecate this error type to use a domain error instead
#[error("RedisError: {0:?}")]
RedisError(String),
#[error("Redis Operation Disabled")]
RedisOperationDisabled,
}
2 changes: 0 additions & 2 deletions crates/redis_interface/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,4 @@ pub enum RedisError {
OnMessageError,
#[error("Got an unknown result from redis")]
UnknownResult,
#[error("Kv Operation is disabled")]
KvSoftKillMode,
}
3 changes: 0 additions & 3 deletions crates/storage_impl/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ impl RedisErrorExt for error_stack::Report<RedisError> {
key: Some(key.to_string()),
})
}
RedisError::KvSoftKillMode => {
self.change_context(DataStorageError::RedisOperationDisabled)
}
_ => self.change_context(DataStorageError::KVError),
}
}
Expand Down

0 comments on commit b55f4b9

Please sign in to comment.