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

Support (*grpcserver.Engine).ServeContext(context.Context) and use it in default #183

Merged
merged 3 commits into from
Mar 24, 2019

Conversation

izumin5210
Copy link
Owner

WHY

To close #151


if internalLis != nil {
eg.Go(func() error { return grpcServer.Serve(internalLis) })
eg.Go(func() error { return grpcServer.Serve(ctx, internalLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:90:31: eg.Go(func() error { return grpcServer.Serve(ctx, internalLis) })


if internalLis != nil {
eg.Go(func() error { return grpcServer.Serve(internalLis) })
eg.Go(func() error { return grpcServer.Serve(ctx, internalLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:90:31: eg.Go(func() error { return grpcServer.Serve(ctx, internalLis) })

}
if grpcLis != nil {
eg.Go(func() error { return grpcServer.Serve(grpcLis) })
eg.Go(func() error { return grpcServer.Serve(ctx, grpcLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:93:31: eg.Go(func() error { return grpcServer.Serve(ctx, grpcLis) })

}
if grpcLis != nil {
eg.Go(func() error { return grpcServer.Serve(grpcLis) })
eg.Go(func() error { return grpcServer.Serve(ctx, grpcLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:93:31: eg.Go(func() error { return grpcServer.Serve(ctx, grpcLis) })

}
if muxServer != nil {
eg.Go(func() error { return muxServer.Serve(nil) })
eg.Go(func() error { return gatewayServer.Serve(ctx, gatewayLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:96:31: eg.Go(func() error { return gatewayServer.Serve(ctx, gatewayLis) })

}
if muxServer != nil {
eg.Go(func() error { return muxServer.Serve(nil) })
eg.Go(func() error { return gatewayServer.Serve(ctx, gatewayLis) })

Choose a reason for hiding this comment

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

[wraperr] reported by reviewdog 🐶
pkg/grapiserver/engine.go:96:31: eg.Go(func() error { return gatewayServer.Serve(ctx, gatewayLis) })

@codecov-io
Copy link

Codecov Report

Merging #183 into master will increase coverage by 0.4%.
The diff coverage is 95%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #183     +/-   ##
=========================================
+ Coverage   61.17%   61.57%   +0.4%     
=========================================
  Files          39       39             
  Lines        1378     1395     +17     
=========================================
+ Hits          843      859     +16     
- Misses        474      476      +2     
+ Partials       61       60      -1
Impacted Files Coverage Δ
pkg/grapiserver/cmux.go 100% <100%> (ø)
pkg/grapiserver/gateway.go 75% <100%> (+3%) ⬆️
pkg/grapiserver/grpc.go 100% <100%> (ø) ⬆️
pkg/grapiserver/engine.go 82.66% <91.48%> (+0.57%) ⬆️

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 137870b...59eaea2. Read the comment docs.

@izumin5210 izumin5210 merged commit 936d555 into master Mar 24, 2019
@izumin5210 izumin5210 deleted the izumin5210/ctx branch March 26, 2019 09:09
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.

(*grapiserver.Engine).ServeContext(context.Context, net.Listener)
3 participants