mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
refactor: drop unused plugin cache identity helper
This commit is contained in:
@@ -94,22 +94,6 @@ export function createPluginCacheKey(parts: readonly unknown[]): string {
|
||||
return JSON.stringify(parts);
|
||||
}
|
||||
|
||||
export type FileSystemIdentity = {
|
||||
path: string;
|
||||
size: number;
|
||||
mtimeMs: number;
|
||||
ctimeMs?: number;
|
||||
};
|
||||
|
||||
export function createFileSystemIdentityCacheKey(identity: FileSystemIdentity): string {
|
||||
return createPluginCacheKey([
|
||||
identity.path,
|
||||
identity.size,
|
||||
identity.mtimeMs,
|
||||
identity.ctimeMs ?? null,
|
||||
]);
|
||||
}
|
||||
|
||||
function normalizeMaxEntries(value: number, fallback: number): number {
|
||||
if (!Number.isFinite(value) || value <= 0) {
|
||||
return fallback;
|
||||
|
||||
Reference in New Issue
Block a user