From b22d4ba7f244bbc3ef46b8e3249542d0ba499aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Mon, 8 Apr 2024 20:22:02 +0800 Subject: [PATCH] fix: resolve issue of missing live consumption data when algorithm service is down --- hrp/pkg/uixt/service_vedem.go | 2 +- hrp/pkg/uixt/video_crawler.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hrp/pkg/uixt/service_vedem.go b/hrp/pkg/uixt/service_vedem.go index 961dbc36..f7dbe4ac 100644 --- a/hrp/pkg/uixt/service_vedem.go +++ b/hrp/pkg/uixt/service_vedem.go @@ -398,7 +398,7 @@ func (dExt *DriverExt) GetScreenResult(options ...ActionOption) (screenResult *S imageResult, err := dExt.ImageService.GetImage(bufSource, options...) if err != nil { log.Error().Err(err).Msg("GetImage from ImageService failed") - return nil, err + return screenResult, err } if imageResult != nil { screenResult.imageResult = imageResult diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 314206cc..def85da9 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -249,8 +249,6 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { ) if err != nil { log.Error().Err(err).Msg("get screen result failed") - time.Sleep(3 * time.Second) - continue } // add live type