-
Notifications
You must be signed in to change notification settings - Fork 37
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
Changes for Complete coroutine. #218
Conversation
Thank you for the PR again @favalos! I think the reason you are seeing test failures is because you re-ordered the states here. So now the constants map to: const (
Pending State = 1 << iota
Resolved // 2
Rejected // 4
Canceled // 8
Timedout // 16
Invalid // 32
) I like this ordering better but we will need to change the test cases to match for the We will also need to remove Invalid from this enum and guard against ever getting to this point. Instead I recommend changing the type of State in the
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #218 +/- ##
==========================================
- Coverage 64.33% 63.95% -0.38%
==========================================
Files 94 92 -2
Lines 10141 9652 -489
==========================================
- Hits 6524 6173 -351
+ Misses 3164 3042 -122
+ Partials 453 437 -16 ☔ View full report in Codecov by Sentry. |
Hey @dfarr, Thanks for the hint, I re-ordered the Enum and that did the trick. I fixed another couple of errors that I found and did the changes related to the recommendation mentioned above. Thank you! |
Looks great @favalos! The only other change I would recommend would be consolidating the t_api Kind to a single kind for these requests called |
I can work on that tonight, no worries! Thanks! |
17269f5
to
aefc288
Compare
Done! Let me know any other suggestions. Thanks! |
Awesome thank you so much @favalos 🎉🎉 🎉 We just need one return statement and I will merge this PR :) |
WIP for #166.
@guergabo I did the changes for this issue.
I marked this as Draft because I am getting a couple of test failures, if you have any advice it would be great.
Any comment or suggestions are welcome.
Thanks!