only health check if theres a block and rpc sender
This commit is contained in:
parent
7fa88e7251
commit
a68d0d60b7
@ -678,10 +678,12 @@ impl Web3Rpc {
|
||||
};
|
||||
|
||||
futures.push(flatten_handle(tokio::spawn(f)));
|
||||
} else {
|
||||
unimplemented!("there should always be a disconnect watch!");
|
||||
}
|
||||
|
||||
// health check that runs if there haven't been any recent requests
|
||||
{
|
||||
if block_and_rpc_sender.is_some() {
|
||||
// TODO: move this into a proper function
|
||||
let rpc = self.clone();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user