This commit is contained in:
2025-08-16 11:09:18 +02:00
parent c7945624bd
commit ee94d731d7
11 changed files with 1297 additions and 1290 deletions

View File

@@ -61,8 +61,9 @@ impl Server {
Ok(storage)
}
fn should_encrypt_db(&self, _db_index: u64) -> bool {
self.option.encrypt
fn should_encrypt_db(&self, db_index: u64) -> bool {
// DB 0-9 are non-encrypted, DB 10+ are encrypted
self.option.encrypt && db_index >= 10
}
pub async fn handle(