Skip to content

Commit

Permalink
Fix gRPC (helius-labs#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantica11 authored Sep 14, 2024
1 parent 0fa69d6 commit 6fadf13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ingester/fetchers/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ pub fn get_grpc_stream_with_rpc_fallback(
continue;
}
};
if block.metadata.slot == 0 {
continue;
}
if block.metadata.parent_slot == last_indexed_slot {
last_indexed_slot = block.metadata.slot;
yield vec![block];
Expand Down Expand Up @@ -186,7 +183,10 @@ fn get_grpc_block_stream(
match message {
Ok(message) => match message.update_oneof {
Some(UpdateOneof::Block(block)) => {
yield parse_block(block);
let block = parse_block(block);
if block.metadata.slot != 0 {
yield block;
}
}
Some(UpdateOneof::Ping(_)) => {
// This is necessary to keep load balancers that expect client pings alive. If your load balancer doesn't
Expand Down

0 comments on commit 6fadf13

Please sign in to comment.