aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-03-17 20:37:31 +0100
committerAlex Auvolat <alex@adnab.me>2021-04-27 16:53:48 +0200
commitcffa9821c10fd50e99f9b02157333e8bafd38346 (patch)
tree745d398063a71518a4e03d023549e06aadbcb5fb /src/util
parentd08778dea4ea62d0cb9ddd4c1855028c0304f9fb (diff)
downloadgarage-cffa9821c10fd50e99f9b02157333e8bafd38346.tar.gz
garage-cffa9821c10fd50e99f9b02157333e8bafd38346.zip
compress blocs with zstd
Diffstat (limited to 'src/util')
-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>,