11use api_models:: { payment_methods:: PaymentMethodId , proxy as proxy_api_models} ;
22use 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::{
1919use 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