mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-10 06:25:00 +00:00
Avoid failed identifier cleanup on failed duplicate upload
This commit is contained in:
parent
7ba2fc9b26
commit
0d1df5ebc2
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ where
|
|||
if HashRepo::create(repo, hash.to_vec().into()).await?.is_err() {
|
||||
// duplicate upload
|
||||
store.remove(identifier).await?;
|
||||
session.identifier.take();
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue