Avoid panicking and reconnect
This commit is contained in:
parent
4b78113456
commit
a3e8e89af7
|
@ -214,7 +214,8 @@ pub fn create_geyser_reconnecting_stream(
|
|||
(ConnectionState::WaitReconnect(attempt), Message::Connecting(attempt))
|
||||
},
|
||||
Err(geyser_grpc_task_error) => {
|
||||
panic!("! task aborted - should not happen :{geyser_grpc_task_error}");
|
||||
log::error!("! task aborted - should not happen :{geyser_grpc_task_error}");
|
||||
(ConnectionState::WaitReconnect(attempt), Message::Connecting(attempt))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -234,7 +235,8 @@ pub fn create_geyser_reconnecting_stream(
|
|||
}
|
||||
None => {
|
||||
// should not arrive here, Mean the stream close.
|
||||
panic!("geyser stream closed on {} - retrying", grpc_source);
|
||||
log::error!("! ready stream closed");
|
||||
(ConnectionState::WaitReconnect(attempt), Message::Connecting(attempt))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue