eliminate unused parameter received, this branch fixes #636

This commit is contained in:
Rob Walker 2018-07-24 08:22:21 -07:00
parent caeb55d066
commit fcdb0403ba
1 changed files with 1 additions and 9 deletions

View File

@ -315,7 +315,6 @@ fn process_blob(
window: &Window,
recycler: &BlobRecycler,
consumed: &mut u64,
received: u64,
) {
let mut window = window.write().unwrap();
let w = (pix % WINDOW_SIZE) as usize;
@ -395,13 +394,7 @@ fn process_blob(
// push all contiguous blobs into consumed queue, increment consumed
loop {
let k = (*consumed % WINDOW_SIZE) as usize;
trace!(
"{:x}: k: {} consumed: {} received: {}",
debug_id,
k,
*consumed,
received
);
trace!("{:x}: k: {} consumed: {}", debug_id, k, *consumed,);
if let Some(blob) = &window[k].data {
if blob.read().unwrap().get_index().unwrap() < *consumed {
@ -486,7 +479,6 @@ fn recv_window(
window,
recycler,
consumed,
*received,
);
}
print_window(debug_id, window, *consumed);