This commit is contained in:
Manav Rathi
2024-11-25 11:53:39 +05:30
parent bffaf65ec5
commit ea92931aa4
3 changed files with 4 additions and 6 deletions

View File

@@ -1,13 +1,13 @@
import log from "@/base/log";
import { EnteFile } from "@/media/file";
import { FileType } from "@/media/file-type";
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
import { TRASH_SECTION } from "@/new/photos/services/collection";
import {
downloadManager,
type LivePhotoSourceURL,
type SourceURLs,
} from "@/gallery/services/download";
import { EnteFile } from "@/media/file";
import { FileType } from "@/media/file-type";
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
import { TRASH_SECTION } from "@/new/photos/services/collection";
import { PHOTOS_PAGES } from "@ente/shared/constants/pages";
import useMemoSingleThreaded from "@ente/shared/hooks/useMemoSingleThreaded";
import { styled } from "@mui/material";

View File

@@ -1 +0,0 @@
import { wait } from "@/utils/promise";

View File

@@ -107,7 +107,6 @@ export const withTimeout = async <T>(promise: Promise<T>, ms: number) => {
return Promise.race([promiseAndCancelTimeout(), rejectOnTimeout]);
};
/**
* Retry a async operation like a HTTP request 3 (+ 1 original) times with
* exponential backoff.