Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rm API in go-fula #220

Open
ehsan6sha opened this issue Mar 14, 2024 · 2 comments
Open

rm API in go-fula #220

ehsan6sha opened this issue Mar 14, 2024 · 2 comments

Comments

@ehsan6sha
Copy link
Member

Currently we have a Put and Get, We also need a Rm endpoint for go-fula so that it removes the stored data (which we use IPFS read opener and write opener for read and write at the moment)

For the data store WNFS calls ....tbd... endpoint for removal of cids

@ehsan6sha
Copy link
Member Author

ehsan6sha commented Mar 14, 2024

The process for rm in WNFS is that:
It does not remove the cids corresponding the the path but just puts the updated cids in the HAMT without that node. so it only puts some cids and does not remove anything indeed.
So I think a suggested process for rm is that:
1- we find out which cids are get when we request that specific file, check what cids are put after rm is done by WNFS. and request to unpin the ones that are removed and pin the ones that are created. However, in theory we should not charge users for new cids (or should we?). I do not have a process for it on chain side right now in my mind

@ehsan6sha
Copy link
Member Author

so maybe no change or new api is needed on go-fula side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant