add more unregisters

This commit is contained in:
Pakin 2025-08-11 14:40:26 +07:00
parent b238c480ab
commit 6d215292bd
2 changed files with 4 additions and 2 deletions

View file

@ -73,7 +73,7 @@ impl Storage {
.remove(key.as_bytes())
.context("Failed to delete container from storage")?;
debug!("🗑️ Deleted container: {}", container_id);
info!("🗑️ Deleted container: {}", container_id);
Ok(())
}
}

View file

@ -129,7 +129,9 @@ impl UpdateManager {
if let Ok(mut container) = self.storage.get_container(container_id).await {
container.status = ContainerStatus::Lost;
container.last_seen = Utc::now();
self.storage.save_container(&container).await?;
self.storage
.delete_container(&container.container_id)
.await?;
info!("📤 Marked container {} as lost", container.name);