mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
sleep 10s when failed to fetch task from coordinator
This commit is contained in:
@@ -35,7 +35,7 @@ impl<'a> TaskProcessor<'a> {
|
||||
None => {
|
||||
let fetch_result = self.prover.fetch_task();
|
||||
if let Err(err) = fetch_result {
|
||||
// TODO: time.sleep
|
||||
std::thread::sleep(core::time::Duration::from_secs(10));
|
||||
return Err(err).context("failed to fetch task from coordinator");
|
||||
}
|
||||
let task_wrapper: TaskWrapper = fetch_result.unwrap().into();
|
||||
|
||||
Reference in New Issue
Block a user