error instead of todo

This commit is contained in:
Bryan Stitt 2022-09-28 16:35:18 +00:00
parent 80db68fd44
commit 2b03372e6b

@ -444,7 +444,7 @@ impl Web3Connections {
warn!("no servers on {:?}! {:?}", self, earliest_retry_at);
match earliest_retry_at {
None => todo!(),
None => Err(anyhow::anyhow!("no servers synced")),
Some(earliest_retry_at) => Ok(OpenRequestResult::RetryAt(earliest_retry_at)),
}
}