add more unregisters
This commit is contained in:
parent
b238c480ab
commit
6d215292bd
2 changed files with 4 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ impl Storage {
|
||||||
.remove(key.as_bytes())
|
.remove(key.as_bytes())
|
||||||
.context("Failed to delete container from storage")?;
|
.context("Failed to delete container from storage")?;
|
||||||
|
|
||||||
debug!("🗑️ Deleted container: {}", container_id);
|
info!("🗑️ Deleted container: {}", container_id);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,9 @@ impl UpdateManager {
|
||||||
if let Ok(mut container) = self.storage.get_container(container_id).await {
|
if let Ok(mut container) = self.storage.get_container(container_id).await {
|
||||||
container.status = ContainerStatus::Lost;
|
container.status = ContainerStatus::Lost;
|
||||||
container.last_seen = Utc::now();
|
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);
|
info!("📤 Marked container {} as lost", container.name);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue