Skip to content

Commit

Permalink
Merge pull request #519 from tursodatabase/lucio/fix-local-sync
Browse files Browse the repository at this point in the history
libsql/core: Fix local sync constructor
  • Loading branch information
LucioFranco authored Oct 27, 2023
2 parents 255297a + 2da9a81 commit 8466500
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libsql/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ cfg_replication! {
/// Open a local database file with the ability to sync from snapshots from local filesystem.
#[cfg(feature = "replication")]
pub async fn open_with_local_sync(db_path: impl Into<String>) -> Result<Database> {
let db = crate::local::Database::open_local_sync(db_path)?;
Ok(Database {
db_type: DbType::Sync { db },
db_type: DbType::File { path: db_path.into(), flags: OpenFlags::default() },
})
}

Expand Down

0 comments on commit 8466500

Please sign in to comment.