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

rpcclient: Implement fmt.Stringer for Client #1298

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

jrick
Copy link
Member

@jrick jrick commented Jun 14, 2018

This implements fmt.Stringer by returning the URL of the RPC server
that the client makes requests to.

Since the client config is not exported by Client, this is now the
only way to return the scheme, host, and endpoint the server.

@jrick jrick force-pushed the clientstring branch 2 times, most recently from 105c76a to 2ece4f0 Compare June 14, 2018 14:48
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

Seems like these should be table driven since they're nearly identical.

This implements fmt.Stringer by returning the URL of the RPC server
that the client makes requests to.

Since the client config is not exported by Client, this is now the
only way to return the scheme, host, and endpoint the server.
@jrick
Copy link
Member Author

jrick commented Jun 14, 2018

Updated

@davecgh
Copy link
Member

davecgh commented Jun 14, 2018

This looks good to me, but I suspect it's going to interfere with #1078 by @maicalal.

@davecgh davecgh merged commit 773b3c0 into decred:master Jun 14, 2018
@jrick jrick deleted the clientstring branch June 14, 2018 21:50
@maicalal
Copy link
Contributor

maicalal commented Jun 15, 2018

hi @jrick, as part of #1078, should I return using the host and endpoint from the last used connection ?
or any usable connection is good ?

@jrick
Copy link
Member Author

jrick commented Jun 15, 2018

Let's move discussion to that issue. I have a few thoughts about the design

@davecgh davecgh added this to the 1.3.0 milestone Jun 15, 2018
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.

4 participants