Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Import

Manav Rathi831563317ef8
diff --git a/desktop/src/main/services/ml-worker.ts b/desktop/src/main/services/ml-worker.ts
index e5ee3ca594..5158925d31 100644
--- a/desktop/src/main/services/ml-worker.ts
+++ b/desktop/src/main/services/ml-worker.ts
@@ -18,6 +18,7 @@ import * as ort from "onnxruntime-node";
import { messagePortMainEndpoint } from "../utils/comlink";
import { wait } from "../utils/common";
import { writeStream } from "../utils/stream";
+import { fsStatMtime } from "./fs";
/**
* We cannot do
@@ -73,12 +74,6 @@ process.parentPort.once("message", (e) => {
);
});
-// Duplicate of `fsStatMtime` from `fs.ts`.
-//
-// Since it is a trivial function, we duplicate its definition in the worker.
-const fsStatMtime = (path: string) =>
- fs.stat(path).then((st) => st.mtime.getTime());
-
/**
* We cannot access Electron's {@link app} object within a utility process, so
* we pass the value of `app.getPath("userData")` during initialization, and it