We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d0687 commit ba32233Copy full SHA for ba32233
extractors/ipc/src/lib.rs
@@ -96,9 +96,14 @@ pub async fn run(args: Args, mut shutdown_rx: watch::Receiver<bool>) -> Result<(
96
loop {
97
tokio::select! {
98
_ = interval.tick() => {
99
+ if ipc_session.rpc_task.is_finished() {
100
+ log::error!("Lost connection to IPC socket. Exiting.");
101
+ break;
102
+ }
103
+
104
if let Err(e) = get_tip(&ipc_session, &nats_client).await {
- log::error!("Could not fetch and publish 'getHeight': {}", e)
- }
105
+ log::error!("Could not fetch and publish 'BlockTip': {}", e)
106
107
}
108
res = shutdown_rx.changed() => {
109
match res {
0 commit comments