fix: resolve issue of missing live consumption data when algorithm service is down

This commit is contained in:
徐聪
2024-06-04 22:00:08 +08:00
parent 2d1c6a024a
commit 1f64c734d0
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S
imageResult, err := dExt.ImageService.GetImage(bufSource, options...) imageResult, err := dExt.ImageService.GetImage(bufSource, options...)
if err != nil { if err != nil {
log.Error().Err(err).Msg("GetImage from ImageService failed") log.Error().Err(err).Msg("GetImage from ImageService failed")
return nil, err return screenResult, err
} }
if imageResult != nil { if imageResult != nil {
screenResult.imageResult = imageResult screenResult.imageResult = imageResult
-2
View File
@@ -265,8 +265,6 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
) )
if err != nil { if err != nil {
log.Error().Err(err).Msg("get screen result failed") log.Error().Err(err).Msg("get screen result failed")
time.Sleep(3 * time.Second)
continue
} }
// add live type // add live type