Use content defined chunking #43
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ impl BodyChunker {
|
||||||
let block = self.buf.drain(..length).collect::<Vec<u8>>();
|
let block = self.buf.drain(..length).collect::<Vec<u8>>();
|
||||||
Ok(Some(block))
|
Ok(Some(block))
|
||||||
} else {
|
} else {
|
||||||
Ok(None)
|
unreachable!("FastCDC returned not chunk")
|
||||||
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue
I think that if FastCDC is giving us
None
here then it's a bug and we should throw an error. We can probably just putunreachable!()
here.