mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-04-29 23:27:42 +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:
parent
67e1c9be8e
commit
8eb63902b0
@ -247,7 +247,7 @@ func (s *service) start() (*errgroup.Group, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn := s.runWithCmux
|
fn := s.runWithCmux
|
||||||
if s.opts.withoutCmux {
|
if s.opts.withoutCmux || s.opts.mux == nil {
|
||||||
fn = s.runWithoutCmux
|
fn = s.runWithoutCmux
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user