mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
config: make db_cache_capacity_mb field unconditional
This is also used by sqlite, causing builds with `--no-default-features --features sqlite` to fail.
This commit is contained in:
parent
b171f7c123
commit
e911518aac
1 changed files with 0 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ pub(crate) struct Config {
|
||||||
pub(crate) server_name: OwnedServerName,
|
pub(crate) server_name: OwnedServerName,
|
||||||
pub(crate) database_backend: String,
|
pub(crate) database_backend: String,
|
||||||
pub(crate) database_path: String,
|
pub(crate) database_path: String,
|
||||||
#[cfg(feature = "rocksdb")]
|
|
||||||
#[serde(default = "default_db_cache_capacity_mb")]
|
#[serde(default = "default_db_cache_capacity_mb")]
|
||||||
pub(crate) db_cache_capacity_mb: f64,
|
pub(crate) db_cache_capacity_mb: f64,
|
||||||
#[serde(default = "default_cache_capacity_modifier")]
|
#[serde(default = "default_cache_capacity_modifier")]
|
||||||
|
|
@ -169,7 +168,6 @@ fn default_port() -> u16 {
|
||||||
6167
|
6167
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "rocksdb")]
|
|
||||||
fn default_db_cache_capacity_mb() -> f64 {
|
fn default_db_cache_capacity_mb() -> f64 {
|
||||||
300.0
|
300.0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue