@onlineapps/mq-client-core 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -284,13 +284,12 @@ class RabbitMQClient extends EventEmitter {
|
|
|
284
284
|
if (!queue.startsWith('rpc.reply.')) {
|
|
285
285
|
// CRITICAL: Use queueConfig.js to get correct parameters (TTL, max-length, etc.)
|
|
286
286
|
// This prevents 406 PRECONDITION-FAILED errors from TTL mismatches
|
|
287
|
-
//
|
|
288
|
-
// Try to load it - if it fails, we'll use defaults
|
|
287
|
+
// Use local queueConfig from mq-client-core (it has infrastructure queue configs)
|
|
289
288
|
let queueConfig = null;
|
|
290
289
|
try {
|
|
291
|
-
queueConfig = require('
|
|
290
|
+
queueConfig = require('../config/queueConfig');
|
|
292
291
|
} catch (requireErr) {
|
|
293
|
-
console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Cannot load queueConfig
|
|
292
|
+
console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Cannot load queueConfig:`, requireErr.message);
|
|
294
293
|
console.warn(`[RabbitMQClient] [mq-client-core] [CONSUMER] Using default queue options (this may cause 406 errors if queue exists with different args)`);
|
|
295
294
|
}
|
|
296
295
|
|