mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(storage_impl): split payment intent interface implementation (#1946)
This commit is contained in:
		| @ -26,11 +26,11 @@ pub fn generate_hscan_pattern_for_attempt(sk: &str) -> String { | ||||
| pub async fn try_redis_get_else_try_database_get<F, RFut, DFut, T>( | ||||
|     redis_fut: RFut, | ||||
|     database_call_closure: F, | ||||
| ) -> errors::CustomResult<T, errors::StorageError> | ||||
| ) -> error_stack::Result<T, errors::StorageError> | ||||
| where | ||||
|     F: FnOnce() -> DFut, | ||||
|     RFut: futures::Future<Output = errors::CustomResult<T, redis_interface::errors::RedisError>>, | ||||
|     DFut: futures::Future<Output = errors::CustomResult<T, errors::StorageError>>, | ||||
|     RFut: futures::Future<Output = error_stack::Result<T, redis_interface::errors::RedisError>>, | ||||
|     DFut: futures::Future<Output = error_stack::Result<T, errors::StorageError>>, | ||||
| { | ||||
|     let redis_output = redis_fut.await; | ||||
|     match redis_output { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sampras Lopes
					Sampras Lopes