-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use panics for serialisation errors #32
Conversation
084a8b8
to
d6322af
Compare
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.
LGTM, this definitely improves the code!
context.go
Outdated
// If the invocation was cancelled while obtaining the state (only possible if eager state is disabled), | ||
// a cancellation error is returned. If eager state is enabled (the default), err will always be ErrKeyNotFound or nil. |
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.
Because this is a runtime config, and not SDK, i wouldn't personally build code against such assumption that eager state is enabled or not
This allows us to simplify apis quite a bit, much less errors all over the place