From 54f973479c4107ca31c12ed2f8ed31f15ba396ec Mon Sep 17 00:00:00 2001 From: mango <1711456624@qq.com> Date: Sun, 26 Jul 2026 00:24:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(connection):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20RPC=20=E4=BF=9D=E6=8A=A4=E9=85=8D=E7=BD=AE=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/connectionRpcConfig.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/connectionRpcConfig.ts b/frontend/src/utils/connectionRpcConfig.ts index 51de00d0..af1c5011 100644 --- a/frontend/src/utils/connectionRpcConfig.ts +++ b/frontend/src/utils/connectionRpcConfig.ts @@ -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,