Increase poll_for_signature retry timeout
This commit is contained in:
parent
9643c39bf6
commit
97790480c9
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue