Fix up client demo

This commit is contained in:
Greg Fitzgerald
2018-03-28 14:40:58 -06:00
parent 27f29019ef
commit 849bced602
3 changed files with 21 additions and 17 deletions

View File

@ -84,7 +84,7 @@ impl AccountantStub {
let mut buf = vec![0u8; 65_535];
let mut buf_offset = 0;
let mut found = false;
if let Ok(bytes) = self.stream.read(&mut buf) {
if let Ok(_bytes) = self.stream.read(&mut buf) {
loop {
match deserialize::<Entry>(&buf[buf_offset..]) {
Ok(entry) => {
@ -100,10 +100,7 @@ impl AccountantStub {
}
}
}
Err(_) => {
println!("read {} of {} in buf", buf_offset, bytes);
break;
}
Err(_) => break,
}
}
}