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

Improve readability in handleQueryP2P #9205

Conversation

jeebster
Copy link
Contributor

Description

ref: #4965


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

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

LGTM, could you add a changelog entry please

@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #9205 (e03129a) into master (e25f80d) will decrease coverage by 0.00%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9205      +/-   ##
==========================================
- Coverage   60.06%   60.06%   -0.01%     
==========================================
  Files         595      595              
  Lines       37353    37355       +2     
==========================================
+ Hits        22436    22437       +1     
  Misses      12929    12929              
- Partials     1988     1989       +1     
Impacted Files Coverage Δ
baseapp/abci.go 57.90% <55.55%> (-0.04%) ⬇️

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.

thanks!

@jeebster
Copy link
Contributor Author

@marbar3778 @AmauryM please note the changes in c760c4fa9..923c0f84d including the requested CHANGELOG entry

@jeebster jeebster force-pushed the jeebster/4965-handleQueryP2P-improve-readability branch from 923c0f8 to 9a92272 Compare April 27, 2021 14:14
@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Apr 28, 2021
@mergify mergify bot merged commit 6fbded9 into cosmos:master Apr 30, 2021
@jeebster jeebster deleted the jeebster/4965-handleQueryP2P-improve-readability branch April 30, 2021 15:21
zakir-code pushed a commit to FunctionX/cosmos-sdk that referenced this pull request Apr 14, 2022
* refactor(abci handleP2PQuery): improve readability via control flow

* refactor(acbi handleQueryP2P): fix logic control flow to ensure early return

* refactor(abci handleQueryP2P): move var declaration to prevent unnecessary initialization

* support(CHANGELOG): add description for abci handleQueryP2P changes

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>

(cherry picked from commit 6fbded9)
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.

3 participants