feat(GOV-009): 建立后端契约与健康检查
This commit is contained in:
@@ -191,7 +191,8 @@ function loadRocketMqConfig(env: EnvironmentSource): RocketMqRuntimeConfig {
|
||||
const nameServerAddress = optionalText(env, 'ROCKETMQ_NAMESRV_ADDR');
|
||||
const endpoint = optionalText(env, 'ROCKETMQ_ENDPOINT');
|
||||
|
||||
// GOV-009 尚不选择 Node RocketMQ 客户端;启用配置只在后续 Adapter 落地时允许启动。
|
||||
// GOV-009 尚未选定通过真实链路验证的 Node 客户端,禁止以内存队列或空实现伪装启用。
|
||||
if (enabled) throw new Error('RocketMQ Node 客户端尚未落地验证,当前禁止启用');
|
||||
if (enabled && !nameServerAddress && !endpoint) {
|
||||
throw new Error('ROCKETMQ_NAMESRV_ADDR 或 ROCKETMQ_ENDPOINT 至少填写一个');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user