mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-22 06:34:31 +00:00
fix(core): guard mq registry cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user