mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 16:37:07 +00:00
chore(deps): migrate direct encoding deps to simd (#6690)
This commit is contained in:
@@ -56,7 +56,7 @@ fn keystone_credentials(project_id: &str) -> Credentials {
|
||||
fn account_metadata_bucket_name(account: &str) -> String {
|
||||
let mut hasher = Sha256::new();
|
||||
hasher.update(account.as_bytes());
|
||||
let hash = hex::encode(hasher.finalize());
|
||||
let hash = hex_simd::encode_to_string(hasher.finalize(), hex_simd::AsciiCase::Lower);
|
||||
format!("swift-account-{}", &hash[0..16])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user