perf(update): reuse missing plugin payload id set (#96950) · openclaw/openclaw@a0e9ca1
ly-wang19
·
2026-06-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1996,13 +1996,13 @@ export async function updatePluginsAfterCoreUpdate(params: {
|
1996 | 1996 | return missingIds; |
1997 | 1997 | }; |
1998 | 1998 | |
1999 | | -const missingPayloadIds = await collectMissingPayloadWarnings(pluginInstallRecords); |
| 1999 | +const missingPayloadIdSet = new Set(await collectMissingPayloadWarnings(pluginInstallRecords)); |
2000 | 2000 | |
2001 | 2001 | const npmResult = await updateNpmInstalledPlugins({ |
2002 | 2002 | config: pluginConfig, |
2003 | 2003 | timeoutMs: params.timeoutMs, |
2004 | 2004 | updateChannel: params.channel, |
2005 | | -skipIds: new Set([...syncResult.summary.switchedToNpm, ...missingPayloadIds]), |
| 2005 | +skipIds: new Set([...syncResult.summary.switchedToNpm, ...missingPayloadIdSet]), |
2006 | 2006 | skipDisabledPlugins: true, |
2007 | 2007 | syncOfficialPluginInstalls: true, |
2008 | 2008 | disableOnFailure: true, |
@@ -2031,7 +2031,7 @@ export async function updatePluginsAfterCoreUpdate(params: {
|
2031 | 2031 | }); |
2032 | 2032 | pluginUpdateOutcomes.push( |
2033 | 2033 | ...remainingMissingPayloads |
2034 | | -.filter((entry) => !missingPayloadIds.includes(entry.pluginId)) |
| 2034 | +.filter((entry) => !missingPayloadIdSet.has(entry.pluginId)) |
2035 | 2035 | .map((entry): PluginUpdateOutcome => { |
2036 | 2036 | const warning = createPostUpdatePluginWarning({ |
2037 | 2037 | pluginId: entry.pluginId, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。