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 Vasiliy Tolstov
parent f6ff36f501
commit b1988daa4e

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{