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<>(); List<YandexSearchResponse.ImageResult> allUniqueImages = new ArrayList<>();
boolean hasTimeout = false; boolean hasTimeout = false;
//
try { // try {
String searchResponseGoogle = searchImageService.searchReverseByPublicUrl( // String searchResponseGoogle = searchImageService.searchReverseByPublicUrl(
file, "google_lens", "exact_matches"); // file, "google_lens", "exact_matches");
//
List<YandexSearchResponse.ImageResult> googleImages = // List<YandexSearchResponse.ImageResult> googleImages =
searchImageService.getAllImagesWithoutPagination(searchResponseGoogle, "exact_matches"); // searchImageService.getAllImagesWithoutPagination(searchResponseGoogle, "exact_matches");
//
allUniqueImages.addAll(googleImages); // allUniqueImages.addAll(googleImages);
log.info("Google search OK for file {}", file.getId()); // log.info("Google search OK for file {}", file.getId());
//
} catch (TimeoutException e) { // } catch (TimeoutException e) {
log.warn("Google search timeout for file {}", file.getId()); // log.warn("Google search timeout for file {}", file.getId());
hasTimeout = true; // hasTimeout = true;
} catch (IOException e) { // } catch (IOException e) {
log.error("Google search failed for file {}", file.getId(), e); // log.error("Google search failed for file {}", file.getId(), e);
} // }
try { try {
String searchResponseYandex = searchImageService.searchReverseByPublicUrl( String searchResponseYandex = searchImageService.searchReverseByPublicUrl(