Log get_last_id errors

This commit is contained in:
Michael Vines 2018-06-28 15:23:53 -07:00 committed by Grimes
parent d28536d76e
commit 1c1d7d1e0e
1 changed files with 9 additions and 4 deletions

View File

@ -150,11 +150,16 @@ impl ThinClient {
.send_to(&data, &self.requests_addr)
.expect("buffer error in pub fn get_last_id");
if let Ok(resp) = self.recv_response() {
if let &Response::LastId { .. } = &resp {
done = true;
match self.recv_response() {
Ok(resp) => {
if let &Response::LastId { .. } = &resp {
done = true;
}
self.process_response(resp);
}
Err(e) => {
debug!("thin_client get_last_id error: {}", e);
}
self.process_response(resp);
}
}
self.last_id.expect("some last_id")