Toggle parameters

This commit is contained in:
Greg Fitzgerald 2018-09-07 11:55:27 -06:00
parent da423b6cf0
commit f07ce59be8
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ fn broadcast(
if log_enabled!(Level::Trace) {
trace!(
"{}",
window::print_window(&id, &window.read().unwrap(), *receive_index)
window::print_window(&window.read().unwrap(), &id, *receive_index)
);
}

View File

@ -465,7 +465,7 @@ fn recv_window(
);
}
if log_enabled!(Level::Trace) {
trace!("{}", print_window(id, &window.read().unwrap(), *consumed));
trace!("{}", print_window(&window.read().unwrap(), id, *consumed));
trace!(
"{}: consumed: {} received: {} sending consume.len: {} pixs: {:?} took {} ms",
id,
@ -483,7 +483,7 @@ fn recv_window(
Ok(())
}
pub fn print_window(id: &Pubkey, window: &Window, consumed: u64) -> String {
pub fn print_window(window: &Window, id: &Pubkey, consumed: u64) -> String {
let pointer: Vec<_> = window
.iter()
.enumerate()