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

namesys: return right after errors #3345

Merged
merged 1 commit into from
Nov 3, 2016
Merged

Conversation

whyrusleeping
Copy link
Member

Previously, if this errored, the possibility for goroutines to get stuck sending a second result down the channel existed. This should prevent that from happening.

License: MIT
Signed-off-by: Jeromy why@ipfs.io

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@whyrusleeping whyrusleeping added the status/in-progress In progress label Nov 1, 2016
@ghost
Copy link

ghost commented Nov 1, 2016

LGTM - shouldn't it have been crashing on proto.Unmarshal(nil)?

@whyrusleeping
Copy link
Member Author

@lgierth Huh, maybe. could be that we never actually hit this?

@whyrusleeping whyrusleeping merged commit 9d132e7 into master Nov 3, 2016
@whyrusleeping whyrusleeping deleted the fix/namesys/error-return branch November 3, 2016 00:58
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Nov 3, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
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.

1 participant