-
Notifications
You must be signed in to change notification settings - Fork 31
Propagate transport coroutine context #374
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @yakivy ! Thank you for this PR! It looks good, I have only one comment for the code, please see below.
Can I also please ask you to clean the history in the branch, remove merge commit and make two commits - one for the change and one for the tests?
Otherwise looks good, I'll run the tests after changes and if everything passes - we'll merge it!
krpc/krpc-test/src/commonTest/kotlin/kotlinx/rpc/krpc/test/LocalTransport.kt
Outdated
Show resolved
Hide resolved
@yakivy stacktrace from
PLease also run |
Same exception for |
@Mr3zee could you take a look once more please? |
@yakivy everything seems fine fine except for detekt. Please fix its errors |
@Mr3zee sorry, could you give some details, command finished successfully on my machine:
Did I miss something? |
@yakivy it shouldn't fail the build, but should produce warnings. Maybe they are cached for a rerun, try to do a code change and run again. |
@Mr3zee I do not see any warning on my machine except the one from "gradle-plugin", can you trigger workflow so I can check warnings there? or maybe you can give me an example of warning from your output? |
@yakivy Here is the detekt report from the CI: |
@Mr3zee pull from this branch again, you are on HEAD~1 commit |
Yes, you are right, some of them are outdated. if (parentContext != null) parentContext + it else it Should be changed to if (parentContext != null) {
parentContext + it
} else {
it
} Also please check that CoroutineContextPropagationTest.kt ends with an empty line, I'm not sure github shows it even when it is present |
Sorry, @Mr3zee do you have custom rules?
And CoroutineContextPropagationTest already ends with a new line. Here is the report: |
@yakivy my bad, maybe I remember incorrectly, will rerun the check |
Yep, it works, sorry for the confusion |
@yakivy thank for your contribution! It will be in |
Issue: #226