Skip to content

Commit

Permalink
Fix poller panic (helius-labs#240)
Browse files Browse the repository at this point in the history
* Increase poller timeout

* Fix poller bug
  • Loading branch information
pmantica11 authored Nov 2, 2024
1 parent 2e40128 commit 15495a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ingester/fetchers/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ pub fn get_grpc_stream_with_rpc_fallback(
.into_iter()
.filter(|b| b.metadata.slot > last_indexed_slot)
.collect();
if rpc_blocks.is_empty() {
continue;
}
let blocks_len = rpc_blocks.len();
let parent_slot = rpc_blocks.first().unwrap().metadata.parent_slot;
let last_slot = rpc_blocks.last().unwrap().metadata.slot;
Expand Down

0 comments on commit 15495a9

Please sign in to comment.