diff --git a/hptp-recv/src/main.rs b/hptp-recv/src/main.rs index 819f809..bc5f142 100644 --- a/hptp-recv/src/main.rs +++ b/hptp-recv/src/main.rs @@ -170,8 +170,9 @@ where let num_acks = if sink.is_file_complete() { 8 } else { 1 }; for _ in 0..num_acks { + let idxs = sink.ack_idxs(); 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 { Ok(()) => (), Err(hptp::peer::SendError::NoTarget) => log.debug_msg("no target").await,