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

Dont complete transfer because graphsync request was cancelled #134

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Jan 18, 2021

It seems that when the graphsync request is cancelled, for example when the node shuts down, graphsync doesn't return the expected error.
This PR contains a work-around: when graphsync reports that the request is done, check if the request context was cancelled, and if so, don't mark the transfer as complete.

@dirkmc dirkmc requested a review from nonsense January 18, 2021 14:59
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