优化连接效率
This commit is contained in:
@@ -77,8 +77,9 @@ func (s *Server) Run() error {
|
||||
}
|
||||
}()
|
||||
|
||||
errCh := make(chan error)
|
||||
errCh := make(chan error, 1)
|
||||
go func() {
|
||||
defer close(errCh)
|
||||
err = m.Serve()
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, "dispatcher serve error")
|
||||
|
||||
Reference in New Issue
Block a user