Modify wrong code ()

Modify_inconsistency
This commit is contained in:
Yichi Zhang 2025-02-27 23:19:12 +08:00 committed by GitHub
parent 7e8e62135c
commit 4f3d11be1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ pub fn make_fragmented_messages<T: LevinBody>(
message: T,
) -> Result<Vec<Bucket<T::Command>>, BucketError> {
assert!(
fragment_size * 2 >= HEADER_SIZE,
fragment_size >= 2 * HEADER_SIZE,
"Fragment size: {fragment_size}, is too small, must be at least {}",
2 * HEADER_SIZE
);