chiark / gitweb /
read_limited_bytes: take an `initial` argument
[hippotat.git] / src / bin / client.rs
index 2497780c52a1e54c5707b7137426247535b37dd3..c3beab3d98f98aed67c31d8536446b4ec7230dd2 100644 (file)
@@ -140,7 +140,7 @@ fn submit_request<'r, 'c:'r, C:HCC>(
       let status = resp.status();
       let mut resp = resp.into_body();
       let max_body = c.ic.max_batch_down.sat() + MAX_OVERHEAD;
-      let resp = read_limited_bytes(max_body, &mut resp).await
+      let resp = read_limited_bytes(max_body, default(), &mut resp).await
         .discard_data().context("fetching response body")?;
 
       if ! status.is_success() {