remove debug println

This commit is contained in:
Dietmar Maurer 2018-12-15 11:16:27 +01:00
parent 43eeef28d1
commit 5f0c2d5652

View File

@ -85,11 +85,9 @@ pub fn file_chunker<C, R>(
tmp = &mut tmp[n..];
}
Err(ref e) if e.kind() == ErrorKind::Interrupted => { /* try again */ }
Err(e) => bail!("read error - {}", e.to_string()),
Err(e) => bail!("read chunk failed - {}", e.to_string()),
}
}
println!("READ {} {}", pos, eof);
let mut start = 0;
while start + chunk_size <= pos {
if !(chunk_cb)(file_pos, &buf[start..start+chunk_size])? { break; }