Skip to content

Commit

Permalink
fix: Cleanup multi-part session & layer parts after upload
Browse files Browse the repository at this point in the history
Signed-off-by: jay-dee7 <[email protected]>
  • Loading branch information
jay-dee7 committed Nov 26, 2023
1 parent 9f1bba5 commit 6b2380a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dfs/ipfs/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ func (ipfs *ipfsP2p) CompleteMultipartUpload(
}
}

// cleanup session & cached layer parts
ipfs.uploadSession.Del(uploadId)
ipfs.uploadParts.Del(uploadId)

return path.RootCid().String(), nil
}

Expand Down

0 comments on commit 6b2380a

Please sign in to comment.