mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor(router): make error_type generic in domain_models inorder to avoid conversion of errors in storage_impl (#7537)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -1,9 +1,11 @@ | ||||
| use bb8::PooledConnection; | ||||
| use diesel::PgConnection; | ||||
| use error_stack::ResultExt; | ||||
| use hyperswitch_domain_models::errors::StorageError; | ||||
|  | ||||
| use crate::{errors::RedisErrorExt, metrics, DatabaseStore}; | ||||
| use crate::{ | ||||
|     errors::{RedisErrorExt, StorageError}, | ||||
|     metrics, DatabaseStore, | ||||
| }; | ||||
|  | ||||
| pub async fn pg_connection_read<T: DatabaseStore>( | ||||
|     store: &T, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jagan
					Jagan