Skip to content

Commit

Permalink
fixup deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 13, 2024
1 parent 3d1654e commit 10efd1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iroh/src/util/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,15 @@ impl Collection {
.chain(links)
.collect::<HashSeq>();

let input = futures_lite::stream::once(Ok(links_bytes.into()));
let res = blobs.add_stream_hash_seq(input, tag).await?.await?;

// delete meta_tag
let tags = crate::client::tags::Client {
rpc: blobs.rpc.clone(),
};
tags.delete(res_meta.tag).await?;

let input = futures_lite::stream::once(Ok(links_bytes.into()));
let res = blobs.add_stream_hash_seq(input, tag).await?.await?;
Ok((res.hash, res.tag))
}

Expand Down

0 comments on commit 10efd1e

Please sign in to comment.