Skip to content

Commit 1dd760f

Browse files
committed
Use is_broken_transaction_manager when returning pooled item
Closes #96
1 parent d04a5e8 commit 1dd760f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pooled_connection/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ pub trait PoolableConnection: AsyncConnection {
257257
/// if the connection is considered to be broken or not. See
258258
/// [ManageConnection::has_broken] for details.
259259
///
260-
/// The default implementation does not consider any connection as broken
261-
fn is_broken(&self) -> bool {
262-
false
260+
/// The default implementation uses
261+
/// [TransactionManager::is_broken_transaction_manager].
262+
fn is_broken(&mut self) -> bool {
263+
Self::TransactionManager::is_broken_transaction_manager(self)
263264
}
264265
}

0 commit comments

Comments
 (0)