Skip to content

Commit

Permalink
fix: add Mutex on "sync" feature
Browse files Browse the repository at this point in the history
  • Loading branch information
levydsa committed Jan 23, 2025
1 parent 7be3b5a commit 11871ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libsql/src/local/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ cfg_replication!(

cfg_sync! {
use crate::sync::SyncContext;
use tokio::sync::Mutex;
}

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

// A libSQL database.
pub struct Database {
Expand Down Expand Up @@ -212,8 +212,6 @@ impl Database {
endpoint: String,
auth_token: String,
) -> Result<Database> {
use tokio::sync::Mutex;

let db_path = db_path.into();
let endpoint = if endpoint.starts_with("libsql:") {
endpoint.replace("libsql:", "https:")
Expand Down

0 comments on commit 11871ac

Please sign in to comment.