mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-07 12:35:54 +00:00
perf(ecstore): use AHashMap for FileInfo metadata fields (#6738)
This commit is contained in:
@@ -1877,7 +1877,7 @@ mod tests {
|
||||
mod_time: Some(OffsetDateTime::UNIX_EPOCH),
|
||||
data_dir: Some(Uuid::from_u128(100)),
|
||||
checksum: Some(Bytes::from_static(b"object-checksum")),
|
||||
metadata: HashMap::from([
|
||||
metadata: AHashMap::from([
|
||||
("etag".to_string(), "etag-value".to_string()),
|
||||
("x-amz-meta-key".to_string(), metadata_value.to_string()),
|
||||
]),
|
||||
@@ -1887,7 +1887,7 @@ mod tests {
|
||||
size: 128,
|
||||
actual_size: 128,
|
||||
mod_time: Some(OffsetDateTime::UNIX_EPOCH),
|
||||
checksums: Some(HashMap::from([(ChecksumType::CRC32C.to_string(), "part-checksum".to_string())])),
|
||||
checksums: Some(AHashMap::from([(ChecksumType::CRC32C.to_string(), "part-checksum".to_string())])),
|
||||
..Default::default()
|
||||
}],
|
||||
..Default::default()
|
||||
|
||||
Reference in New Issue
Block a user