server.Init(Wait(nil)) update server options context (#1804)

Co-authored-by: wangxu <wangxu@oneniceapp.com>
Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
王旭 2020-07-09 01:36:07 +08:00 committed by GitHub
parent 333320dcb8
commit 1bac08cc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,8 @@ func (g *grpcServer) configure(opts ...server.Option) {
o(&g.opts) o(&g.opts)
} }
g.wg = wait(g.opts.Context)
maxMsgSize := g.getMaxMsgSize() maxMsgSize := g.getMaxMsgSize()
gopts := []grpc.ServerOption{ gopts := []grpc.ServerOption{