- 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

@@ -28,7 +28,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let db_nodes = get_service_address(&consul_url, "database-service").await?;
// 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 mut meta = HashMap::new();
meta.insert("name".to_string(), "Athena".to_string());