Add rocksdb
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use crate::config::types::{ApplicationConfig, BasicConfig, PathConfig};
|
||||
use crate::constants::{APP_CONIFG_FILE_PATH, APP_DATA_DIR};
|
||||
use crate::constants::{APP_CONIFG_FILE_PATH, APP_DB_DATA_DIR};
|
||||
use color_eyre::Result;
|
||||
use std::path::PathBuf;
|
||||
use serde_json;
|
||||
@@ -24,12 +24,7 @@ impl ApplicationConfig {
|
||||
fn new() -> Self {
|
||||
let conf = Self {
|
||||
basic_config: BasicConfig {
|
||||
db_path: APP_DATA_DIR
|
||||
.clone()
|
||||
.join("games.db")
|
||||
.to_str()
|
||||
.unwrap()
|
||||
.to_string(),
|
||||
db_path: APP_DB_DATA_DIR.to_str().unwrap().to_string(),
|
||||
tick_rate: 250,
|
||||
},
|
||||
path_config: PathConfig {
|
||||
|
||||
Reference in New Issue
Block a user