Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantica11 committed Nov 27, 2024
1 parent 5bd3f39 commit b1c7beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yellowstone-grpc-geyser/src/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ impl GrpcService {
let num_slots_behind = NUM_SLOTS_BEHIND.load(Ordering::SeqCst);
if num_slots_behind > HEALTH_CHECK_SLOT_DISTANCE {
error!("gRPC node is lagging behind. Disconnecting client #{id}");
stream_tx.send(Err(Status::internal("gRPC node is lagging behind. Disconnecting client."))).await.unwrap();
stream_tx.send(Err(Status::internal("Node is significantly behind the chain tip. Disconnecting to maintain service quality. Please reconnect - you will be automatically routed to a healthy node if using a load balancer."))).await.unwrap();
break 'outer;
}

Expand Down

0 comments on commit b1c7beb

Please sign in to comment.