fix off by one for send_to() of blob

This commit is contained in:
Rob Walker 2018-07-25 15:12:13 -07:00 committed by Grimes
parent 6fde65577e
commit 75212f40e7
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ impl Crdt {
v.contact_info.tvu,
blob.is_coding()
);
assert!(blob.meta.size < BLOB_SIZE);
assert!(blob.meta.size <= BLOB_SIZE);
let e = s.send_to(&blob.data[..blob.meta.size], &v.contact_info.tvu);
trace!(
"{:x}: done broadcast {} to {:x} {}",