refactor(errors): add parsing error types for context info (#911)

This commit is contained in:
Sampras Lopes
2023-05-11 18:15:00 +05:30
committed by GitHub
parent f790099368
commit 0d46690502
9 changed files with 77 additions and 67 deletions

View File

@ -133,7 +133,7 @@ impl super::RedisConnectionPool {
pub async fn get_and_deserialize_key<T>(
&self,
key: &str,
type_name: &str,
type_name: &'static str,
) -> CustomResult<T, errors::RedisError>
where
T: serde::de::DeserializeOwned,
@ -380,7 +380,7 @@ impl super::RedisConnectionPool {
&self,
key: &str,
field: &str,
type_name: &str,
type_name: &'static str,
) -> CustomResult<V, errors::RedisError>
where
V: serde::de::DeserializeOwned,