Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Sep 18, 2021
1 parent 54607af commit b30a103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ impl ConnectionTrait for DatabaseConnection {

#[cfg(feature = "mock")]
impl DatabaseConnection {
fn as_mock_connection(&self) -> &crate::MockDatabaseConnection {
pub fn as_mock_connection(&self) -> &crate::MockDatabaseConnection {
match self {
DatabaseConnection::MockDatabaseConnection(mock_conn) => mock_conn,
_ => panic!("not mock connection"),
}
}

fn into_transaction_log(&self) -> Vec<crate::Transaction> {
pub fn into_transaction_log(&self) -> Vec<crate::Transaction> {
let mut mocker = self.as_mock_connection().get_mocker_mutex().lock().unwrap();
mocker.drain_transaction_log()
}
Expand Down

0 comments on commit b30a103

Please sign in to comment.