-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Handle JSON RPC errors. Resolves issue #672. #673
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.
Minus the comment thing, if you're happy, I'm happy :)
// DecodeResponseFunc extracts a user-domain response object from an HTTP | ||
// request object. It's designed to be used in JSON RPC clients, for | ||
// DecodeResponseFunc extracts a user-domain response object from an JSONRPC | ||
// response object. It's designed to be used in JSON RPC clients, for | ||
// client-side endpoints. One straightforward DecodeRequestFunc could be |
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.
Oops, looks like a copy/paste flub in the comment! Probably there are others of these, too. Also, does the actual comment from this point on make sense?
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.
Thanks for spotting that. I've made some tweaks to the doc comments in that file.
I think this looks tidy now. I'll be using it in anger in the near future, so will feed back if there are any other tweaks needed. |
@peterbourgon before merge I'd like to play a bit with it... can you wait max. a day until merge? |
@basvanbeek I'll wait until you ping me again 👍 |
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
Failures are related to the Thrift nonsense, so I'm gonna optimistically merge. |
* Handle JSON RPC errors. Resolves issue go-kit#672. * Refactor decode func to receive JSON RPC response. Remove error func. * Comment tweaks.
No description provided.