refactor: drop unused plugin cache identity helper · openclaw/openclaw@d4d4a59
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -94,22 +94,6 @@ export function createPluginCacheKey(parts: readonly unknown[]): string {
|
94 | 94 | return JSON.stringify(parts); |
95 | 95 | } |
96 | 96 | |
97 | | -export type FileSystemIdentity = { |
98 | | -path: string; |
99 | | -size: number; |
100 | | -mtimeMs: number; |
101 | | -ctimeMs?: number; |
102 | | -}; |
103 | | - |
104 | | -export function createFileSystemIdentityCacheKey(identity: FileSystemIdentity): string { |
105 | | -return createPluginCacheKey([ |
106 | | -identity.path, |
107 | | -identity.size, |
108 | | -identity.mtimeMs, |
109 | | -identity.ctimeMs ?? null, |
110 | | -]); |
111 | | -} |
112 | | - |
113 | 97 | function normalizeMaxEntries(value: number, fallback: number): number { |
114 | 98 | if (!Number.isFinite(value) || value <= 0) { |
115 | 99 | return fallback; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。