mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-12 09:34:05 +08:00
🐛 fix(connection): 修复 RPC 保护配置构建类型
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user