mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 07:36:53 +00:00
@@ -12,7 +12,6 @@ use http::HeaderMap;
|
||||
use rmp_serde::Serializer;
|
||||
use s3s::dto::StreamingBlob;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sha2::Sha256;
|
||||
use time::OffsetDateTime;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -249,7 +248,7 @@ impl ErasureInfo {
|
||||
}
|
||||
}
|
||||
|
||||
ChecksumInfo {algorithm: BitrotAlgorithm::HighwayHash256S, ..Default::default()}
|
||||
ChecksumInfo {algorithm: DEFAULT_BITROT_ALGO, ..Default::default()}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,6 +260,8 @@ pub struct ChecksumInfo {
|
||||
pub hash: Vec<u8>,
|
||||
}
|
||||
|
||||
pub const DEFAULT_BITROT_ALGO: BitrotAlgorithm = BitrotAlgorithm::HighwayHash256S;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Default, Clone, Eq, Hash)]
|
||||
// BitrotAlgorithm specifies a algorithm used for bitrot protection.
|
||||
pub enum BitrotAlgorithm {
|
||||
|
||||
Reference in New Issue
Block a user