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

Fix panic in context when setting nodeURI #7699

Merged
merged 6 commits into from
Oct 28, 2020
Merged

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Oct 28, 2020

Description

tested:

gaiad status --node 157..65.118.186:26657
Error: parse "157.65.118.186:26657": first path segment in URL cannot contain colon

closes: #7575


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

Move URI parsing outside of context. WithNodeURI will only set the nodeURI. To set the Client in the context, WithClient must be called.
@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #7699 into master will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #7699   +/-   ##
=======================================
  Coverage   54.12%   54.12%           
=======================================
  Files         611      611           
  Lines       38620    38620           
=======================================
  Hits        20902    20902           
  Misses      15582    15582           
  Partials     2136     2136           

@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 28, 2020
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

utACK

@mergify mergify bot merged commit dca9dcd into master Oct 28, 2020
@mergify mergify bot deleted the colin/7575-node-ip-panic branch October 28, 2020 13:31
clevinson pushed a commit that referenced this pull request Oct 29, 2020
* Fix panic in context

Move URI parsing outside of context. WithNodeURI will only set the nodeURI. To set the Client in the context, WithClient must be called.

* add changelog

* add deleted space back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrectly set node ip results in panic on cli
4 participants