Skip to content

feat: support aborting exports #47

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

Merged
merged 2 commits into from
Apr 15, 2020
Merged

Conversation

achingbrain
Copy link
Member

Adds a signal option to the exporter that will be passed to ipld.get, allowing it to be notified that the user is no longer interested in exporting the file/directory/etc.

Current behaviour is that if the node is offline and a block is not in the repo is will throw, if it's online the CID will be added to the bitswap want list via the block service.

Follow up PRs to ipld, block service and bitswap will implement the removal logic.

Adds a `signal` option to the exporter that will be passed to `ipld.get`,
allowing it to be notified that the user is no longer interested in
exporting the file/directory/etc.

Current behaviour is that if the node is offline and a block is not in
the repo is will throw, if it's online the CID will be added to the
bitswap want list via the block service.

Follow up PRs to ipld, block service and bitswap will impelement the
removal logic.
@achingbrain achingbrain requested a review from hugomrdias March 30, 2020 12:54
@achingbrain achingbrain merged commit 7685e44 into master Apr 15, 2020
@achingbrain achingbrain deleted the feat/pass-abort-signal-to-ipld branch April 15, 2020 08:18
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

Successfully merging this pull request may close these issues.

2 participants