Skip to content

Commit abaebbd

Browse files
committed
Merge branch 'temp-pm-id-support-in-proxy' of github.com:juspay/hyperswitch into temp-pm-id-support-in-proxy
2 parents b48ff51 + 84eee04 commit abaebbd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

crates/router/src/core/proxy/utils.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use api_models::{payment_methods::PaymentMethodId, proxy as proxy_api_models};
22
use common_utils::{
3-
encryption::Encryption,
43
crypto::{DecodeMessage, GcmAes256},
4+
encryption::Encryption,
55
ext_traits::{BytesExt, Encode, OptionExt},
66
id_type,
77
};
@@ -19,7 +19,7 @@ use x509_parser::nom::{
1919
use crate::{
2020
core::{
2121
errors::{self, RouterResult},
22-
payment_methods::{vault, cards},
22+
payment_methods::{cards, vault},
2323
},
2424
routes::SessionState,
2525
types::{domain, payment_methods as pm_types},
@@ -96,9 +96,7 @@ impl ProxyRequestWrapper {
9696
let payment_method = resp
9797
.parse_struct::<diesel_models::PaymentMethod>("PaymentMethod")
9898
.change_context(errors::ApiErrorResponse::InternalServerError)
99-
.attach_printable(
100-
"Error getting PaymentMethod from redis",
101-
)?;
99+
.attach_printable("Error getting PaymentMethod from redis")?;
102100

103101
let keymanager_state = &state.into();
104102

@@ -246,7 +244,10 @@ impl ProxyRecord {
246244
.attach_printable("Failed to get redis connection")?;
247245

248246
let response = redis_conn
249-
.get_and_deserialize_key::<Encryption>(&vault_id.get_string_repr().into(), "Vec<u8>")
247+
.get_and_deserialize_key::<Encryption>(
248+
&vault_id.get_string_repr().into(),
249+
"Vec<u8>",
250+
)
250251
.await;
251252

252253
match response {

0 commit comments

Comments
 (0)