Skip to content

Commit a5d679e

Browse files
fix(proto): double accounting of BufList::copy_to_bytes bytes
1 parent f0df10d commit a5d679e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

watermelon-proto/src/util/buf_list.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ impl<B: Buf> Buf for BufList<B> {
103103

104104
let mut bufs = BytesMut::with_capacity(len);
105105
bufs.put(self.take(len));
106-
let bufs = bufs.freeze();
107-
108-
self.len -= len;
109-
bufs
106+
bufs.freeze()
110107
}
111108
}

0 commit comments

Comments
 (0)