mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-21 16:52:28 +00:00
service: do not use cmux if there is no http server
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -247,7 +247,7 @@ func (s *service) start() (*errgroup.Group, error) {
|
||||
}
|
||||
|
||||
fn := s.runWithCmux
|
||||
if s.opts.withoutCmux {
|
||||
if s.opts.withoutCmux || s.opts.mux == nil {
|
||||
fn = s.runWithoutCmux
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user