Skip to content

Commit 0716b0f

Browse files
committed
Hacks v2
1 parent 5b54bbc commit 0716b0f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pixie-server/src/state/images.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ impl State {
2828

2929
/// Store the given chunk to the database.
3030
pub fn add_chunk(&self, data: &[u8]) -> Result<()> {
31-
ensure!(
32-
data.len() <= pixie_shared::MAX_CHUNK_SIZE,
33-
"Chunk size is too big: {}",
34-
data.len()
35-
);
36-
3731
let mut res = Ok(());
3832
let hash = *blake3::hash(data).as_bytes();
3933
let path = self.storage_dir.join(CHUNKS_DIR).join(hex::encode(hash));

0 commit comments

Comments
 (0)