Use diesel-async re-export of Hook

This commit is contained in:
asonix 2023-09-24 15:48:19 -05:00
parent 745e990fa0
commit ecdbaa9c92

View file

@ -12,11 +12,10 @@ use std::{
}; };
use dashmap::DashMap; use dashmap::DashMap;
use deadpool::managed::Hook;
use diesel::prelude::*; use diesel::prelude::*;
use diesel_async::{ use diesel_async::{
pooled_connection::{ pooled_connection::{
deadpool::{BuildError, Object, Pool, PoolError}, deadpool::{BuildError, Hook, Object, Pool, PoolError},
AsyncDieselConnectionManager, ManagerConfig, AsyncDieselConnectionManager, ManagerConfig,
}, },
AsyncConnection, AsyncPgConnection, RunQueryDsl, AsyncConnection, AsyncPgConnection, RunQueryDsl,