Skip to content

Commit

Permalink
breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko authored and solana-grimes committed May 29, 2018
1 parent 0cb2036 commit 8d1f82c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ 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
// 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);
Expand Down

0 comments on commit 8d1f82c

Please sign in to comment.