Skip to content

Handle JSON RPC errors. Resolves issue #672. - #673

Merged
peterbourgon merged 3 commits into
go-kit:masterfrom
rossmcf:issue-672
Mar 13, 2018
Merged

Handle JSON RPC errors. Resolves issue #672.#673
peterbourgon merged 3 commits into
go-kit:masterfrom
rossmcf:issue-672

Conversation

@rossmcf

@rossmcf rossmcf commented Mar 7, 2018

Copy link
Copy Markdown
Contributor

No description provided.

@peterbourgon peterbourgon left a comment

Copy link
Copy Markdown
Member

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 :)

Comment thread transport/http/jsonrpc/encode_decode.go Outdated
// 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

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor Author

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.

@rossmcf

rossmcf commented Mar 12, 2018

Copy link
Copy Markdown
Contributor Author

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.

@basvanbeek

Copy link
Copy Markdown
Member

@peterbourgon before merge I'd like to play a bit with it... can you wait max. a day until merge?

@peterbourgon

Copy link
Copy Markdown
Member

@basvanbeek I'll wait until you ping me again 👍

@basvanbeek basvanbeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@peterbourgon

Copy link
Copy Markdown
Member

Failures are related to the Thrift nonsense, so I'm gonna optimistically merge.

@peterbourgon
peterbourgon merged commit feff11c into go-kit:master Mar 13, 2018
jamesgist pushed a commit to jamesgist/kit that referenced this pull request Nov 1, 2024
* Handle JSON RPC errors. Resolves issue go-kit#672.

* Refactor decode func to receive JSON RPC response. Remove error func.

* Comment tweaks.
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.

3 participants