Restore persisted aliases
@@ -360,9 +360,14 @@ impl ParticleAppServices {
service: Mutex::new(service),
blueprint_id: s.blueprint_id,
owner_id: s.owner_id,
- aliases: s.aliases,
+ aliases: s.aliases.clone(),
};
+
let replaced = self.services.write().insert(s.service_id.clone(), service);
+ let mut aliases = self.aliases.write();
+ for alias in s.aliases.into_iter() {
+ aliases.insert(alias, s.service_id.clone());
+ }
debug_assert!(
replaced.is_none(),
