This commit is contained in:
Milo Turner 2020-03-14 15:07:49 -04:00
parent 63390aa7b8
commit 7d3715ab02
1 changed files with 2 additions and 1 deletions

View File

@ -170,8 +170,9 @@ where
let num_acks = if sink.is_file_complete() { 8 } else { 1 }; let num_acks = if sink.is_file_complete() { 8 } else { 1 };
for _ in 0..num_acks { for _ in 0..num_acks {
let idxs = sink.ack_idxs();
log.debug_msg(format!("send acks {:?}", idxs)).await; log.debug_msg(format!("send acks {:?}", idxs)).await;
let m = DownMsg::Ack { idxs: sink.ack_idxs() }; let m = DownMsg::Ack { idxs };
match peer.send(m).await { match peer.send(m).await {
Ok(()) => (), Ok(()) => (),
Err(hptp::peer::SendError::NoTarget) => log.debug_msg("no target").await, Err(hptp::peer::SendError::NoTarget) => log.debug_msg("no target").await,