From 97790480c9952bd14139762963905f5f59441ce9 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 8 Feb 2019 13:30:48 -0800 Subject: [PATCH] Increase poll_for_signature retry timeout --- src/thin_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thin_client.rs b/src/thin_client.rs index 4f9385ce91..dee3d936cc 100644 --- a/src/thin_client.rs +++ b/src/thin_client.rs @@ -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(()) }