接入萤石摄像头后端优化

This commit is contained in:
XM-GO
2023-09-05 17:09:24 +08:00
parent 8934271438
commit 86397860c8
14 changed files with 2511 additions and 135 deletions

View File

@@ -37,10 +37,9 @@ func (s *HttpServer) Type() Type {
func (s *HttpServer) Start(ctx context.Context) error {
global.Log.Infof("HTTP Server listen: %s", s.Addr)
go func() {
s.srv.ListenAndServe()
/*if err := s.srv.ListenAndServe(); err != nil {
if err := s.srv.ListenAndServe(); err != nil {
global.Log.Errorf("error http serve: %s", err)
}*/
}
}()
return nil
}