...
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user