- add: session-service
- move: redis_cache from database service to utils so it can be reused - update: redis_cache set function to allow creating a key without a lifetime - update: services to use the new get_or_generate_service_id function
This commit is contained in:
@@ -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::generate_service_id();
|
||||
let service_id = consul_registration::get_or_generate_service_id();
|
||||
let tags = vec!["version-1.0".to_string()];
|
||||
let mut meta = HashMap::new();
|
||||
meta.insert("name".to_string(), "Rose".to_string());
|
||||
|
||||
Reference in New Issue
Block a user