mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +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:
@ -3,9 +3,11 @@ use bb8::CustomizeConnection;
|
||||
use common_utils::DbConnectionParams;
|
||||
use diesel::PgConnection;
|
||||
use error_stack::ResultExt;
|
||||
use hyperswitch_domain_models::errors::{StorageError, StorageResult};
|
||||
|
||||
use crate::config::{Database, TenantConfig};
|
||||
use crate::{
|
||||
config::{Database, TenantConfig},
|
||||
errors::{StorageError, StorageResult},
|
||||
};
|
||||
|
||||
pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>;
|
||||
pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>;
|
||||
|
||||
Reference in New Issue
Block a user