-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix client.Clone() to include the address. #10077
Conversation
api/client.go
Outdated
|
||
return NewClient(newConfig) | ||
err = client.SetAddress(newConfig.Address) |
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.
Looking at the code some more I'm confused why we need to call SetAddress here, since NewClient does the equivalent.
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.
I'll double check this to be sure, but my memory is that either client.addr
or config.Address
ended up not being set correctly without this line.
@ncabatoff I believe I addressed all of your feedback, in addition to adding 2 new getters for |
Additionally, add getters for any setters that didn't already have them.
Additionally, add getters for any setters that didn't already have them. Also beef up the test to exhaustively test every getter/setter combo.
Closes #9905