loop, dont crash

This commit is contained in:
Bryan Stitt 2023-09-14 12:51:40 -07:00
parent 01179d14f2
commit 357dae108a

@ -852,7 +852,14 @@ impl Web3Rpc {
} }
} }
} else { } else {
unimplemented!(); // TODO: what should we do here?
loop {
if *subscribe_stop_rx.borrow() {
trace!("stopping ws block subscription on {}", self);
return Ok(());
}
subscribe_stop_rx.changed().await?;
}
} }
Ok(()) Ok(())