clippy
This commit is contained in:
committed by
Michael Vines
parent
a096ade345
commit
54f16ca2bf
@ -416,11 +416,11 @@ fn poll_blockhash<T: Client>(
|
||||
if blockhash_last_updated.elapsed().as_secs() > 120 {
|
||||
eprintln!("Blockhash is stuck");
|
||||
exit(1)
|
||||
} else if blockhash_last_updated.elapsed().as_secs() > 30 {
|
||||
if last_error_log.elapsed().as_secs() >= 1 {
|
||||
last_error_log = Instant::now();
|
||||
error!("Blockhash is not updating");
|
||||
}
|
||||
} else if blockhash_last_updated.elapsed().as_secs() > 30
|
||||
&& last_error_log.elapsed().as_secs() >= 1
|
||||
{
|
||||
last_error_log = Instant::now();
|
||||
error!("Blockhash is not updating");
|
||||
}
|
||||
false
|
||||
}
|
||||
|
Reference in New Issue
Block a user