mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
hardcode sqlite database file name
Naming it after the program is kinda silly.
This commit is contained in:
parent
989cad2715
commit
5e3825c37c
1 changed files with 1 additions and 8 deletions
|
|
@ -67,14 +67,7 @@ pub(crate) struct Engine {
|
||||||
|
|
||||||
impl Engine {
|
impl Engine {
|
||||||
pub(crate) fn open(config: &Config) -> Result<Self> {
|
pub(crate) fn open(config: &Config) -> Result<Self> {
|
||||||
let path = Path::new(&config.database.path).join(format!(
|
let path = Path::new(&config.database.path).join("sqlite.db");
|
||||||
"{}.db",
|
|
||||||
if config.conduit_compat {
|
|
||||||
"conduit"
|
|
||||||
} else {
|
|
||||||
"grapevine"
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
// calculates cache-size per permanent connection
|
// calculates cache-size per permanent connection
|
||||||
// 1. convert MB to KiB
|
// 1. convert MB to KiB
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue