From 693eb0dbb9307d359368d8509c71d4684c21e348 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 5 Jul 2026 01:55:27 +0800 Subject: [PATCH] fix(core): guard mq registry cleanup --- crates/dbx-core/src/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rs index 729fc7cd70..2668e24262 100644 --- a/crates/dbx-core/src/connection.rs +++ b/crates/dbx-core/src/connection.rs @@ -638,6 +638,8 @@ impl AppState { pool: PoolKind, config: &ConnectionConfig, ) { + // mq_registry only exists in mq-admin builds; other builds reject MQ connects before a pool is created. + #[cfg(feature = "mq-admin")] if matches!(pool, PoolKind::MessageQueue) { self.mq_registry.drop_connection(connection_id).await; }