🐛 fix(connection): 修复 RPC 保护配置构建类型

This commit is contained in:
mango
2026-07-26 00:24:42 +08:00
parent 2d9e92fbf9
commit 54f973479c

View File

@@ -124,7 +124,13 @@ export function buildRpcConnectionConfig(
const baseId = toStringValue(config.id).trim() || toStringValue(overrides.id).trim() || undefined;
const timeout = toOptionalInteger(rpcMerged.timeout, toOptionalInteger(config.timeout));
const redisDB = toOptionalInteger(rpcMerged.redisDB, toOptionalInteger(config.redisDB));
const protection = resolveConnectionProtectionConfig(rpcMerged);
const protection = resolveConnectionProtectionConfig({
type: toStringValue(rpcMerged.type),
driver: rpcMerged.driver,
oceanBaseProtocol: rpcMerged.oceanBaseProtocol,
readOnly: rpcMerged.readOnly,
protection: rpcMerged.protection,
});
const rpcConfig = new connection.ConnectionConfig({
...rpcPayload,