mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor: rename kms feature flag to aws_kms (#3249)
				
					
				
			Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -19,8 +19,8 @@ use common_utils::{ | ||||
| }; | ||||
| use data_models::payments::PaymentIntent; | ||||
| use error_stack::{IntoReport, ResultExt}; | ||||
| #[cfg(feature = "kms")] | ||||
| pub use external_services::kms; | ||||
| #[cfg(feature = "aws_kms")] | ||||
| pub use external_services::aws_kms; | ||||
| use helpers::PaymentAuthConnectorDataExt; | ||||
| use masking::{ExposeInterface, PeekInterface}; | ||||
| use pm_auth::{ | ||||
| @ -368,8 +368,8 @@ async fn store_bank_details_in_payment_methods( | ||||
|     } | ||||
|     .await?; | ||||
|  | ||||
|     #[cfg(feature = "kms")] | ||||
|     let pm_auth_key = kms::get_kms_client(&state.conf.kms) | ||||
|     #[cfg(feature = "aws_kms")] | ||||
|     let pm_auth_key = aws_kms::get_aws_kms_client(&state.conf.kms) | ||||
|         .await | ||||
|         .decrypt(pm_auth_key) | ||||
|         .await | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Chethan Rao
					Chethan Rao