From 15495a97c9e88733cf9a53956fd69e12896e8813 Mon Sep 17 00:00:00 2001 From: pmantica11 <151664502+pmantica11@users.noreply.github.com> Date: Sat, 2 Nov 2024 02:40:28 -0600 Subject: [PATCH] Fix poller panic (#240) * Increase poller timeout * Fix poller bug --- src/ingester/fetchers/grpc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ingester/fetchers/grpc.rs b/src/ingester/fetchers/grpc.rs index 343910f8..33c2603b 100644 --- a/src/ingester/fetchers/grpc.rs +++ b/src/ingester/fetchers/grpc.rs @@ -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;