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 standalone execution #4884

Merged
merged 1 commit into from
Aug 11, 2019
Merged

Conversation

alessio
Copy link
Contributor

@alessio alessio commented Aug 10, 2019

Add infinite loop at the end of startStandAlone() to prevent
the server process from exiting immediately after bootstrap.

Closes: #4879

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added a relevant changelog entry: clog add [section] [-t <tag>] [-m <msg>]
  • Re-reviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Add infinite loop at the end of startStandAlone() to prevent
the server process from exiting immediately after bootstrap.

Closes: #4879
@codecov
Copy link

codecov bot commented Aug 10, 2019

Codecov Report

Merging #4884 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4884      +/-   ##
==========================================
- Coverage   54.05%   54.04%   -0.02%     
==========================================
  Files         269      269              
  Lines       17116    17116              
==========================================
- Hits         9252     9250       -2     
- Misses       7178     7180       +2     
  Partials      686      686

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK

@alexanderbez alexanderbez merged commit 8f51fb3 into master Aug 11, 2019
@alexanderbez alexanderbez deleted the alessio/fix-run-with-standalone-tm branch August 11, 2019 22:42

// run forever (the node will not be returned)
select {}

return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm getting this error when I run make with this commit:

/Users/tnachen/go/bin/golangci-lint run
server/start.go:103:2: unreachable: unreachable code (govet)
return nil

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, apparently for some reason this snippet dodged Golangci bot check: https://golangci.com/r/github.com/cosmos/cosmos-sdk/pulls/4884

alexanderbez pushed a commit that referenced this pull request Aug 13, 2019
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.

ABCI in standalone mode is started and immediately close
3 participants