disable amplitude on debug build

This commit is contained in:
Tamo 2021-06-16 17:12:49 +02:00
parent c0d169e79e
commit 4e2568fd6e
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
4 changed files with 6 additions and 6 deletions

View file

@ -71,7 +71,7 @@ pub fn default_settings(dir: impl AsRef<Path>) -> Opt {
http_addr: "127.0.0.1:7700".to_owned(),
master_key: None,
env: "development".to_owned(),
#[cfg(feature = "analytics")]
#[cfg(all(not(debug_assertions), feature = "analytics"))]
no_analytics: true,
max_mdb_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),
max_udb_size: Byte::from_unit(4.0, ByteUnit::GiB).unwrap(),