- update: generate_service_id function call now takes in the service name so the id file isn't always called utils_service_id.txt

This commit is contained in:
2024-12-27 19:04:54 -05:00
parent 17f653c629
commit 00468e9600
8 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let health_check_url = format!("http://{}:{}/health", service_address, health_port);
// Register service with Consul
let service_id = consul_registration::get_or_generate_service_id();
let service_id = consul_registration::get_or_generate_service_id(env!("CARGO_PKG_NAME"));
let tags = vec!["version-1.0".to_string()];
let meta = HashMap::new();
consul_registration::register_service(