Increase poll_for_signature retry timeout

This commit is contained in:
Michael Vines 2019-02-08 13:30:48 -08:00
parent 9643c39bf6
commit 97790480c9
1 changed files with 2 additions and 2 deletions

View File

@ -332,11 +332,11 @@ impl ThinClient {
pub fn poll_for_signature(&mut self, signature: &Signature) -> io::Result<()> {
let now = Instant::now();
while !self.check_signature(signature) {
if now.elapsed().as_secs() > 1 {
if now.elapsed().as_secs() > 4 {
// TODO: Return a better error.
return Err(io::Error::new(io::ErrorKind::Other, "signature not found"));
}
sleep(Duration::from_millis(100));
sleep(Duration::from_millis(500));
}
Ok(())
}