From b1c7beb1da1866b064d6a08ba6fe892620b6bf63 Mon Sep 17 00:00:00 2001 From: Pedro Mantica Date: Wed, 27 Nov 2024 16:05:17 +0000 Subject: [PATCH] Improve error message --- yellowstone-grpc-geyser/src/grpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yellowstone-grpc-geyser/src/grpc.rs b/yellowstone-grpc-geyser/src/grpc.rs index f1715331..624e8b3b 100644 --- a/yellowstone-grpc-geyser/src/grpc.rs +++ b/yellowstone-grpc-geyser/src/grpc.rs @@ -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; }