Skip to content

Commit 11871ac

Browse files
committed
fix: add Mutex on "sync" feature
1 parent 7be3b5a commit 11871ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libsql/src/local/database.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ cfg_replication!(
2020

2121
cfg_sync! {
2222
use crate::sync::SyncContext;
23+
use tokio::sync::Mutex;
2324
}
2425

2526
use crate::{database::OpenFlags, local::connection::Connection, Error::ConnectionFailed, Result};
2627
use libsql_sys::ffi;
27-
use tokio::sync::Mutex;
2828

2929
// A libSQL database.
3030
pub struct Database {
@@ -212,8 +212,6 @@ impl Database {
212212
endpoint: String,
213213
auth_token: String,
214214
) -> Result<Database> {
215-
use tokio::sync::Mutex;
216-
217215
let db_path = db_path.into();
218216
let endpoint = if endpoint.starts_with("libsql:") {
219217
endpoint.replace("libsql:", "https:")

0 commit comments

Comments
 (0)