dev add vio
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-03-14 21:16:29 +07:00
parent b5b71ddfe6
commit aa665acbad
@@ -87,23 +87,23 @@ public class GlobalSearchAsyncProcessor {
List<YandexSearchResponse.ImageResult> allUniqueImages = new ArrayList<>();
boolean hasTimeout = false;
try {
String searchResponseGoogle = searchImageService.searchReverseByPublicUrl(
file, "google_lens", "exact_matches");
List<YandexSearchResponse.ImageResult> googleImages =
searchImageService.getAllImagesWithoutPagination(searchResponseGoogle, "exact_matches");
allUniqueImages.addAll(googleImages);
log.info("Google search OK for file {}", file.getId());
} catch (TimeoutException e) {
log.warn("Google search timeout for file {}", file.getId());
hasTimeout = true;
} catch (IOException e) {
log.error("Google search failed for file {}", file.getId(), e);
}
//
// try {
// String searchResponseGoogle = searchImageService.searchReverseByPublicUrl(
// file, "google_lens", "exact_matches");
//
// List<YandexSearchResponse.ImageResult> googleImages =
// searchImageService.getAllImagesWithoutPagination(searchResponseGoogle, "exact_matches");
//
// allUniqueImages.addAll(googleImages);
// log.info("Google search OK for file {}", file.getId());
//
// } catch (TimeoutException e) {
// log.warn("Google search timeout for file {}", file.getId());
// hasTimeout = true;
// } catch (IOException e) {
// log.error("Google search failed for file {}", file.getId(), e);
// }
try {
String searchResponseYandex = searchImageService.searchReverseByPublicUrl(