comment on bad blob usage

This commit is contained in:
Anatoly Yakovenko 2018-05-27 18:55:00 -07:00 committed by Grimes
parent 2b1e90b0a5
commit 0cb2036e3a
1 changed files with 1 additions and 0 deletions

View File

@ -246,6 +246,7 @@ pub fn to_blob<T: Serialize>(
let mut b = blob.write().unwrap();
let v = serialize(&resp)?;
let len = v.len();
//TODO: we are not using .data_mut() method here because the raw bytes are being serialized and sent, this isn't the right interface, and we should create a separate path for sending request responses in the RPU
b.data[..len].copy_from_slice(&v);
b.meta.size = len;
b.meta.set_addr(&rsp_addr);