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

chore(rpc): graceful shutdown for RPC server #463

Merged
merged 1 commit into from
Feb 4, 2020
Merged

chore(rpc): graceful shutdown for RPC server #463

merged 1 commit into from
Feb 4, 2020

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Feb 4, 2020

graceful shutdown for grpc service.

fixed #462

graceful shutdown for grpc service.
@appleboy appleboy self-assigned this Feb 4, 2020
return nil
var g errgroup.Group
g.Go(func() error {
select {

Choose a reason for hiding this comment

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

S1000: should use a simple channel send/receive instead of select with a single case (from gosimple)

@codecov-io
Copy link

codecov-io commented Feb 4, 2020

Codecov Report

Merging #463 into master will decrease coverage by 0.23%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #463      +/-   ##
==========================================
- Coverage   82.95%   82.72%   -0.24%     
==========================================
  Files          20       20              
  Lines        1414     1418       +4     
==========================================
  Hits         1173     1173              
- Misses        193      197       +4     
  Partials       48       48
Impacted Files Coverage Δ
rpc/server.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcd0e70...8c0f2b2. Read the comment docs.

@appleboy appleboy merged commit 2113dfc into master Feb 4, 2020
@appleboy appleboy deleted the grpc branch February 4, 2020 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support graceful shutdown for RPC service
3 participants