- add: gRPC health check for gRPC services
This commit is contained in:
@@ -77,7 +77,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
env::var("PACKET_SERVICE_ADDR").unwrap_or_else(|_| "127.0.0.1".to_string());
|
||||
let service_port = port.clone();
|
||||
let health_check_url = format!("http://{}:{}/health", service_address, health_port);
|
||||
let health_check_endpoint_addr = format!("{}:{}", service_address, health_port);
|
||||
let auth_node = get_service_address(&consul_url, "auth-service").await?;
|
||||
let character_node = get_service_address(&consul_url, "character-service").await?;
|
||||
|
||||
@@ -94,7 +93,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
service_port.parse().unwrap_or(50052),
|
||||
tags,
|
||||
meta,
|
||||
&health_check_url,
|
||||
Some("http"),
|
||||
Some(&health_check_url),
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user