Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider a4a308ce rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MISC: Forgot to fix the last comment

parent c2706d1c
Branches
Étiquettes
2 requêtes de fusion!206Use incremental upgrades when syncing epochs,!197Draft: Refactor the whole code.
Pipeline #28730 en attente d'une ressource
......@@ -253,13 +253,12 @@ impl<'a, Storage: DatabaseStorage> UpdateHandler<'a, Storage> {
.await
}
pub async fn delete_kara_v2(&self, repo: &str, rkid: u64) -> Result<KId> {
if let (Some(id), _) = (self.pool.read().await).get_from_remote(RemoteKId::new(rkid, repo))
{
pub async fn delete_kara_v2(&self, repo: &str, remote_kid: u64) -> Result<KId> {
let id = (self.pool.read().await)
.get_from_remote(RemoteKId::new(remote_kid, repo))
.0
.context("corresponding local id not found")?;
self.new_epoch.borrow_mut().content().data_mut().remove(&id);
Ok(id)
} else {
Err(anyhow!("corresponding local id not found"))
}
}
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter