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

ClientRetrieve stops on cancel #6739

Merged
merged 1 commit into from
Jul 12, 2021
Merged

ClientRetrieve stops on cancel #6739

merged 1 commit into from
Jul 12, 2021

Conversation

hannahhoward
Copy link
Contributor

Goals

fix #6738

Implementation

Check for deal status cancelled when inspecting deal events in ClientRetrieve and ClientRetrieveWithEvents, and close channel when that happens.

When a deal is cancelled, any in progress calls to ClientRetrieve or ClientRetrieveWithEvents should
return
Copy link
Member

@raulk raulk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably implement an integration test at some point.

@raulk raulk merged commit 5c3e79e into master Jul 12, 2021
@raulk raulk deleted the fix/cancel-stops-retrieval branch July 12, 2021 22:22
@arajasek
Copy link
Contributor

is it not bad go practice for errors to start with a capital letter? (i don't really know what i'm talking about)

@hannahhoward
Copy link
Contributor Author

@arajasek I think it might be, and also, I seem to chafe against this cause I hate the idea of not using proper human grammar, so no matter how many times someone reminds me, I forget this rule. (unintentionally I swear)

@raulk
Copy link
Member

raulk commented Jul 13, 2021

oOpSiE

@raulk
Copy link
Member

raulk commented Jul 13, 2021

wOULD tHIS bE a vALID eRROR

@raulk
Copy link
Member

raulk commented Jul 13, 2021

Just kidding :-) Agree we should settle on a rule and revisit all errors to comply with it. And that rule should probably be what's idiomatic (starts with lower case, doesn't end with punctuation)

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.

[BUG] ClientRetrieve & ClientRetrieveWithEvents hang when ClientCancelRetrievalDeal is called
3 participants