-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix standalone execution #4884
Conversation
Add infinite loop at the end of startStandAlone() to prevent the server process from exiting immediately after bootstrap. Closes: #4879
Codecov Report
@@ 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 |
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.
ACK
|
||
// run forever (the node will not be returned) | ||
select {} | ||
|
||
return nil |
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'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
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.
You're right, apparently for some reason this snippet dodged Golangci bot check: https://golangci.com/r/github.com/cosmos/cosmos-sdk/pulls/4884
Add infinite loop at the end of startStandAlone() to prevent
the server process from exiting immediately after bootstrap.
Closes: #4879
docs/
)clog add [section] [-t <tag>] [-m <msg>]
Files changed
in the github PR explorerFor Admin Use: