Skip to content

Commit

Permalink
#3: do not panic on geyser stream close
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Jan 7, 2024
1 parent 4d7e781 commit 623f40f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/grpc_subscription_autoreconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ pub fn create_geyser_reconnecting_stream(
}
None => {
// should not arrive here, Mean the stream close.
panic!("geyser stream closed on {} - retrying", grpc_source);
warn!("geyser stream closed on {} - retrying", grpc_source);
(ConnectionState::WaitReconnect(attempt), Message::Connecting(attempt))
}
}

Expand Down

0 comments on commit 623f40f

Please sign in to comment.