Skip to content

Commit 368e6c5

Browse files
wip
1 parent 29aefdd commit 368e6c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/db/sqlx/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ fn with_transaction<R, C: FnOnce(&Arc<SqlxTransaction>) -> R>(
824824
})
825825
}
826826

827-
fn store_connection(con: Arc<SqlxConnection>) -> usize {
827+
pub fn store_connection(con: Arc<SqlxConnection>) -> usize {
828828
CONNECTIONS.with(|rc| {
829829
let map = &mut rc.borrow_mut();
830830
map.insert(con)
@@ -838,7 +838,7 @@ fn drop_connection(proxy_instance_id: &usize) {
838838
})
839839
}
840840

841-
fn store_transaction(tx: SqlxTransaction) -> usize {
841+
pub fn store_transaction(tx: SqlxTransaction) -> usize {
842842
TRANSACTIONS.with(|rc| {
843843
let map = &mut *rc.borrow_mut();
844844
map.insert(Arc::new(tx))

0 commit comments

Comments
 (0)