@@ -48,7 +48,7 @@ pub type Pool<C> = deadpool::managed::Pool<AsyncDieselConnectionManager<C>>;
48
48
/// Type alias for using [`deadpool::managed::PoolBuilder`] with [`diesel-async`]
49
49
pub type PoolBuilder < C > = deadpool:: managed:: PoolBuilder < AsyncDieselConnectionManager < C > > ;
50
50
/// Type alias for using [`deadpool::managed::BuildError`] with [`diesel-async`]
51
- pub type BuildError = deadpool:: managed:: BuildError < super :: PoolError > ;
51
+ pub type BuildError = deadpool:: managed:: BuildError ;
52
52
/// Type alias for using [`deadpool::managed::PoolError`] with [`diesel-async`]
53
53
pub type PoolError = deadpool:: managed:: PoolError < super :: PoolError > ;
54
54
/// Type alias for using [`deadpool::managed::Object`] with [`diesel-async`]
@@ -57,8 +57,6 @@ pub type Object<C> = deadpool::managed::Object<AsyncDieselConnectionManager<C>>;
57
57
pub type Hook < C > = deadpool:: managed:: Hook < AsyncDieselConnectionManager < C > > ;
58
58
/// Type alias for using [`deadpool::managed::HookError`] with [`diesel-async`]
59
59
pub type HookError = deadpool:: managed:: HookError < super :: PoolError > ;
60
- /// Type alias for using [`deadpool::managed::HookErrorCause`] with [`diesel-async`]
61
- pub type HookErrorCause = deadpool:: managed:: HookErrorCause < super :: PoolError > ;
62
60
63
61
#[ async_trait:: async_trait]
64
62
impl < C > Manager for AsyncDieselConnectionManager < C >
78
76
. map_err ( super :: PoolError :: ConnectionError )
79
77
}
80
78
81
- async fn recycle ( & self , obj : & mut Self :: Type ) -> deadpool:: managed:: RecycleResult < Self :: Error > {
79
+ async fn recycle (
80
+ & self ,
81
+ obj : & mut Self :: Type ,
82
+ _: & deadpool:: managed:: Metrics ,
83
+ ) -> deadpool:: managed:: RecycleResult < Self :: Error > {
82
84
if std:: thread:: panicking ( ) || obj. is_broken ( ) {
83
85
return Err ( deadpool:: managed:: RecycleError :: StaticMessage (
84
86
"Broken connection" ,
0 commit comments