summaryrefslogtreecommitdiff
path: root/src/repo
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo')
-rw-r--r--src/repo/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repo/mod.rs b/src/repo/mod.rs
index f0bb95c..45e9ce3 100644
--- a/src/repo/mod.rs
+++ b/src/repo/mod.rs
@@ -11,7 +11,7 @@ mod constants;
static REPO_INSTANCE: Lazy<Db> = Lazy::new(|| {
Config::default()
- .path(&CONFIG_INSTANCE.db_uri)
+ .path(&CONFIG_INSTANCE.db_path)
.temporary(true)
.open()
.expect("Couldn't open DB!")
@@ -19,7 +19,7 @@ static REPO_INSTANCE: Lazy<Db> = Lazy::new(|| {
pub fn create_demo_db() -> Result<(), TwinHError> {
let db = sled::Config::default()
- .path(&CONFIG_INSTANCE.db_uri)
+ .path(&CONFIG_INSTANCE.db_path)
.create_new(true)
.open()?;
let cars_tree = db.open_tree(CARS_TREE)?;
@@ -28,7 +28,7 @@ pub fn create_demo_db() -> Result<(), TwinHError> {
pub fn create_new_db() -> Result<(), TwinHError> {
sled::Config::default()
- .path(&CONFIG_INSTANCE.db_uri)
+ .path(&CONFIG_INSTANCE.db_path)
.create_new(true)
.open()?;
Ok(())