From f4c51cd405f1a0695b16c085655eb0180637fe2d Mon Sep 17 00:00:00 2001
From: June Clementine Strawberry <june@3.dog>
Date: Thu, 6 Mar 2025 00:18:28 -0500
Subject: [PATCH] remove zlib as a default rocksdb compression option

Signed-off-by: June Clementine Strawberry <june@3.dog>
---
 conduwuit-example.toml       | 2 +-
 deps/rust-rocksdb/Cargo.toml | 2 +-
 src/core/config/mod.rs       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/conduwuit-example.toml b/conduwuit-example.toml
index 9b6f6ce0..541f062d 100644
--- a/conduwuit-example.toml
+++ b/conduwuit-example.toml
@@ -821,7 +821,7 @@
 
 # Type of RocksDB database compression to use.
 #
-# Available options are "zstd", "zlib", "bz2", "lz4", or "none".
+# Available options are "zstd", "bz2", "lz4", or "none".
 #
 # It is best to use ZSTD as an overall good balance between
 # speed/performance, storage, IO amplification, and CPU usage. For more
diff --git a/deps/rust-rocksdb/Cargo.toml b/deps/rust-rocksdb/Cargo.toml
index 61bd2333..35f755b4 100644
--- a/deps/rust-rocksdb/Cargo.toml
+++ b/deps/rust-rocksdb/Cargo.toml
@@ -10,7 +10,7 @@ repository.workspace = true
 version = "0.0.1"
 
 [features]
-default = ["lz4", "zstd", "zlib", "bzip2"]
+default = ["lz4", "zstd", "bzip2"]
 jemalloc = ["rust-rocksdb/jemalloc"]
 io-uring = ["rust-rocksdb/io-uring"]
 numa = ["rust-rocksdb/numa"] # unused by rocksdb for now
diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs
index 67c3b95c..5a4819e0 100644
--- a/src/core/config/mod.rs
+++ b/src/core/config/mod.rs
@@ -975,7 +975,7 @@ pub struct Config {
 
 	/// Type of RocksDB database compression to use.
 	///
-	/// Available options are "zstd", "zlib", "bz2", "lz4", or "none".
+	/// Available options are "zstd", "bz2", "lz4", or "none".
 	///
 	/// It is best to use ZSTD as an overall good balance between
 	/// speed/performance, storage, IO amplification, and CPU usage. For more