stream: replace panic with log+reconnect

This commit is contained in:
GroovieGermanikus 2024-03-22 10:56:40 +01:00
parent 497dfe0144
commit a821ca219b
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ pub fn create_geyser_reconnecting_stream(
(ConnectionState::WaitReconnect(attempt + 1), Message::Connecting(attempt))
},
Err(geyser_grpc_task_error) => {
panic!("task aborted - should not happen :{geyser_grpc_task_error}");
warn!("connection task aborted on {} - retrying: {:?}", grpc_source, geyser_grpc_task_error);
(ConnectionState::WaitReconnect(attempt + 1), Message::Connecting(attempt))
}
}