Update method name

This commit is contained in:
vishnukvmd 2023-10-28 16:23:48 +05:30
parent 1a01fbd5d9
commit e6c5bf0bbe
2 changed files with 4 additions and 2 deletions

View file

@ -210,7 +210,7 @@ class SemanticSearchService {
return; return;
} }
try { try {
final filePath = (await getThumbnailFile(file))!.path; final filePath = (await getThumbnailForUploadedFile(file))!.path;
_logger.info("Running clip over $file"); _logger.info("Running clip over $file");
final startTime = DateTime.now(); final startTime = DateTime.now();
final result = await _computer.compute( final result = await _computer.compute(

View file

@ -42,7 +42,9 @@ Future<Uint8List?> getThumbnail(EnteFile file) async {
} }
} }
Future<File?> getThumbnailFile(EnteFile file) async { // Note: This method should only be called for files that have been uploaded
// since cachedThumbnailPath depends on the file's uploadedID
Future<File?> getThumbnailForUploadedFile(EnteFile file) async {
final thumbnail = await getThumbnail(file); final thumbnail = await getThumbnail(file);
if (thumbnail != null) { if (thumbnail != null) {
final cachedThumbnail = cachedThumbnailPath(file); final cachedThumbnail = cachedThumbnailPath(file);