From 5e3825c37c2573449419f03616d254cb460b480d Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 8 Oct 2024 19:02:18 -0700 Subject: [PATCH] hardcode sqlite database file name Naming it after the program is kinda silly. --- src/database/abstraction/sqlite.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/database/abstraction/sqlite.rs b/src/database/abstraction/sqlite.rs index 1ed4f248..943c553d 100644 --- a/src/database/abstraction/sqlite.rs +++ b/src/database/abstraction/sqlite.rs @@ -67,14 +67,7 @@ pub(crate) struct Engine { impl Engine { pub(crate) fn open(config: &Config) -> Result { - let path = Path::new(&config.database.path).join(format!( - "{}.db", - if config.conduit_compat { - "conduit" - } else { - "grapevine" - } - )); + let path = Path::new(&config.database.path).join("sqlite.db"); // calculates cache-size per permanent connection // 1. convert MB to KiB