Remove/address some TODOs (#6923)

This commit is contained in:
Michael Vines
2019-11-13 09:43:15 -07:00
committed by GitHub
parent 9246bee12b
commit fcc2874591
15 changed files with 52 additions and 54 deletions

View File

@ -191,10 +191,12 @@ impl SyncClient for BankClient {
}
};
if now.elapsed().as_secs() > 15 {
// TODO: Return a better error.
return Err(TransportError::IoError(io::Error::new(
io::ErrorKind::Other,
"signature not found",
format!(
"signature not found after {} seconds",
now.elapsed().as_secs()
),
)));
}
sleep(Duration::from_millis(250));
@ -212,10 +214,12 @@ impl SyncClient for BankClient {
}
}
if now.elapsed().as_secs() > 15 {
// TODO: Return a better error.
return Err(TransportError::IoError(io::Error::new(
io::ErrorKind::Other,
"signature not found",
format!(
"signature not found after {} seconds",
now.elapsed().as_secs()
),
)));
}
sleep(Duration::from_millis(250));