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

runner: reduce for+select to for range in runner.Loop #126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zyga
Copy link
Contributor

@zyga zyga commented Jul 4, 2021

Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@huawei.com

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you, mostly cosmetic but looks smaller/less nested.

@mvo5 mvo5 added the Ready label Jul 27, 2021
}
debugf("Worker terminated.")
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, looks like this is not ready. Current go complains:

./runner.go:246:1: missing return at end of function

we could of course just move the reutrn down but i would feel better I think if we had a a unit test here, given the function I'm not sure that is easy to do though :/

@mvo5 mvo5 added Ready and removed Ready labels Feb 4, 2022
@mvo5 mvo5 removed the Ready label Feb 28, 2023
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.

None yet

2 participants