revert(models): drop auth-profiles.json fs watcher (#85244) · openclaw/openclaw@b01a078
sjf
·
2026-05-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1019,14 +1019,13 @@ export async function startGatewayPostAttachRuntime(
|
1019 | 1019 | }); |
1020 | 1020 | |
1021 | 1021 | void sidecarsPromise |
1022 | | -.then(async (sidecarsResult) => { |
| 1022 | +.then(async () => { |
1023 | 1023 | if (params.minimalTestGateway) { |
1024 | 1024 | return; |
1025 | 1025 | } |
1026 | 1026 | const { clearCurrentProviderAuthState, warmCurrentProviderAuthState } = |
1027 | 1027 | await import("../agents/model-provider-auth.js"); |
1028 | 1028 | const { setAuthProfileFailureHook } = await import("../agents/auth-profiles.js"); |
1029 | | -const { watchAuthProfilesForChanges } = await import("../agents/auth-profiles-watcher.js"); |
1030 | 1029 | const scheduleAuthMapRewarm = (reason: string) => { |
1031 | 1030 | const startMs = Date.now(); |
1032 | 1031 | void warmCurrentProviderAuthState(params.cfgAtStart) |
@@ -1043,19 +1042,6 @@ export async function startGatewayPostAttachRuntime(
|
1043 | 1042 | clearCurrentProviderAuthState(); |
1044 | 1043 | scheduleAuthMapRewarm("auth-profile-failure"); |
1045 | 1044 | }); |
1046 | | -const authProfilesWatcher = watchAuthProfilesForChanges({ |
1047 | | -cfg: params.cfgAtStart, |
1048 | | -onChange: () => { |
1049 | | -clearCurrentProviderAuthState(); |
1050 | | -scheduleAuthMapRewarm("auth-profiles.json change"); |
1051 | | -}, |
1052 | | -log: params.log, |
1053 | | -}); |
1054 | | -sidecarsResult.postReadySidecars.push({ |
1055 | | -stop: () => { |
1056 | | -void authProfilesWatcher.stop(); |
1057 | | -}, |
1058 | | -}); |
1059 | 1045 | const startMs = Date.now(); |
1060 | 1046 | await warmCurrentProviderAuthState(params.cfgAtStart); |
1061 | 1047 | params.log.info(`provider auth state pre-warmed in ${Date.now() - startMs}ms`); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。