suyanhanx commented on code in PR #3038:
URL:
https://github.com/apache/incubator-opendal/pull/3038#discussion_r1323008673
##########
core/src/raw/oio/buf/chunked_bytes.rs:
##########
@@ -74,9 +76,9 @@ impl ChunkedBytes {
/// Reference:
<https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#impl-From%3CVec%3CT,+A%3E%3E-for-VecDeque%3CT,+A%3E>
pub fn from_vec(bs: Vec<Bytes>) -> Self {
Self {
+ size: bs.iter().map(|v| v.len()).sum(),
Review Comment:
I was referring to the part before the modification. I couldn't understand
how the size of the buf, which was created from a certain bytes, could be 0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]