aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-03-17 20:37:31 +0100
committerTrinity Pointard <trinity.pointard@gmail.com>2021-04-08 15:38:31 +0200
commitde8e47435f2c08f86def1b26325c7cda46830a19 (patch)
treeacb13c919d38220eec385f6e1a967fd4089fcb11 /src/util/config.rs
parent7560a41ab16fa45f9a1397ee93581ad39f873cbb (diff)
downloadgarage-de8e47435f2c08f86def1b26325c7cda46830a19.tar.gz
garage-de8e47435f2c08f86def1b26325c7cda46830a19.zip
compress blocs with zstd
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index bb70467b..ab9cae6c 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -45,6 +45,10 @@ pub struct Config {
#[serde(default = "default_replication_factor")]
pub data_replication_factor: usize,
+ /// Zstd compression level used on data blocks
+ #[serde(default)]
+ pub compression_level: i32,
+
/// Configuration for RPC TLS
pub rpc_tls: Option<TlsConfig>,