refactor(protocols): replace tar with astral-tokio-tar for async processing (#2099)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: houseme <4829346+houseme@users.noreply.github.com>
This commit is contained in:
houseme
2026-03-08 15:18:15 +08:00
committed by GitHub
parent b035d10abb
commit 8e4a1ef917
11 changed files with 235 additions and 146 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ impl EncryptionMetadata {
}
/// Check if object should be encrypted based on configuration and headers
pub fn should_encrypt(config: &EncryptionConfig, headers: &axum::http::HeaderMap) -> bool {
pub fn should_encrypt(config: &EncryptionConfig, headers: &http::HeaderMap) -> bool {
// Check if encryption is globally enabled
if !config.enabled {
return false;
@@ -447,7 +447,7 @@ mod tests {
let key = vec![0u8; 32];
let config = EncryptionConfig::new(true, "test".to_string(), key).unwrap();
let headers = axum::http::HeaderMap::new();
let headers = http::HeaderMap::new();
assert!(should_encrypt(&config, &headers));
// Test with disabled config