Update method name
This commit is contained in:
parent
1a01fbd5d9
commit
e6c5bf0bbe
|
@ -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(
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue