mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
refactor(redis): invoke redis_conn() method instead of cloning redis_conn property in StorageInterface (#1552)
Co-authored-by: jeeva <jeeva.ramu@codurance.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -46,7 +46,12 @@ pub async fn make_payout_method_data<'a>(
|
||||
)
|
||||
);
|
||||
|
||||
let redis_conn = state.store.get_redis_conn();
|
||||
let redis_conn = state
|
||||
.store
|
||||
.get_redis_conn()
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed to get redis connection")?;
|
||||
|
||||
let hyperswitch_token_option = redis_conn
|
||||
.get_key::<Option<String>>(&key)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user