From 7d3715ab02a8889c47b612a327726f171e93fca6 Mon Sep 17 00:00:00 2001 From: Milo Turner Date: Sat, 14 Mar 2020 15:07:49 -0400 Subject: [PATCH] oops --- hptp-recv/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,