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