mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:17:39 +00:00
Gateway: avoid double secrets activation at startup
This commit is contained in:
committed by
Peter Steinberger
parent
b50c4c2c44
commit
b1533bc80c
@@ -306,11 +306,10 @@ export async function startGatewayServer(
|
|||||||
: "Unknown validation issue.";
|
: "Unknown validation issue.";
|
||||||
throw new Error(`Invalid config at ${freshSnapshot.path}.\n${issues}`);
|
throw new Error(`Invalid config at ${freshSnapshot.path}.\n${issues}`);
|
||||||
}
|
}
|
||||||
const prepared = await activateRuntimeSecrets(freshSnapshot.config, {
|
await activateRuntimeSecrets(freshSnapshot.config, {
|
||||||
reason: "startup",
|
reason: "startup",
|
||||||
activate: true,
|
activate: false,
|
||||||
});
|
});
|
||||||
cfgAtStart = prepared.config;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cfgAtStart = loadConfig();
|
cfgAtStart = loadConfig();
|
||||||
|
|||||||
Reference in New Issue
Block a user