Log get_last_id errors
This commit is contained in:
parent
d28536d76e
commit
1c1d7d1e0e
|
@ -150,11 +150,16 @@ impl ThinClient {
|
||||||
.send_to(&data, &self.requests_addr)
|
.send_to(&data, &self.requests_addr)
|
||||||
.expect("buffer error in pub fn get_last_id");
|
.expect("buffer error in pub fn get_last_id");
|
||||||
|
|
||||||
if let Ok(resp) = self.recv_response() {
|
match self.recv_response() {
|
||||||
if let &Response::LastId { .. } = &resp {
|
Ok(resp) => {
|
||||||
done = true;
|
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")
|
self.last_id.expect("some last_id")
|
||||||
|
|
Loading…
Reference in New Issue