From 93d9a3b8d6984a8f113a30fea523607162e71589 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Fri, 9 Apr 2021 20:26:19 -0400 Subject: better startup configuration --- src/repo/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/repo') 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 = 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 = 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(()) -- cgit v1.2.3