fix(hwlab): tune d601 v03 db pool config

This commit is contained in:
Codex
2026-06-20 22:57:45 +00:00
parent 27b3a208d2
commit 475275dfca
2 changed files with 13 additions and 2 deletions
+11 -1
View File
@@ -81,6 +81,7 @@ export interface HwlabRuntimeExternalPostgresSpec {
export interface HwlabRuntimePostgresStoreSpec {
readonly poolMax: number;
readonly connectionTimeoutMs?: number;
}
export interface HwlabRuntimeStoreSpec {
@@ -587,7 +588,16 @@ function runtimeStoreConfig(value: unknown, path: string): HwlabRuntimeStoreSpec
const raw = asRecord(value, path);
const postgres = raw.postgres === undefined ? undefined : asRecord(raw.postgres, `${path}.postgres`);
return {
...(postgres === undefined ? {} : { postgres: { poolMax: numberField(postgres, "poolMax", `${path}.postgres`) } }),
...(postgres === undefined
? {}
: {
postgres: {
poolMax: numberField(postgres, "poolMax", `${path}.postgres`),
...(postgres.connectionTimeoutMs === undefined
? {}
: { connectionTimeoutMs: numberField(postgres, "connectionTimeoutMs", `${path}.postgres`) }),
},
}),
};
}