fix off by one in packet.rs

This commit is contained in:
Rob Walker
2018-07-26 08:55:00 -07:00
parent 5115cd7798
commit dd819cec3d
3 changed files with 3 additions and 3 deletions

View File

@@ -693,7 +693,7 @@ impl Crdt {
v.debug_id(),
);
//TODO profile this, may need multiple sockets for par_iter
assert!(rblob.meta.size < BLOB_SIZE);
assert!(rblob.meta.size <= BLOB_SIZE);
s.send_to(&rblob.data[..rblob.meta.size], &v.contact_info.tvu)
})
.collect();