aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2021-04-14 23:27:33 +0200
committerAlex <alex@adnab.me>2021-04-14 23:27:33 +0200
commit307858bf0a077e6bb7ce77d9f5ca56c4ae2a5e63 (patch)
treeed1fa4c1db9bde2ead40ac60c29b681ed21f0de7 /src/util
parent76efb4999d41da71b1c89093ed651a9e162801c6 (diff)
parentd4fd07400008247c475ffe2c66bb2bd57bf7ab5c (diff)
downloadgarage-307858bf0a077e6bb7ce77d9f5ca56c4ae2a5e63.tar.gz
garage-307858bf0a077e6bb7ce77d9f5ca56c4ae2a5e63.zip
Merge pull request 'Compress with zstd' (#44) from trinity-1686a/garage:zstd-block into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/44
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..29901d46 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>,