@autofleet/rabbit 3.2.2 → 3.2.3
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/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -160,6 +160,9 @@ class RabbitMq {
|
|
|
160
160
|
}
|
|
161
161
|
this.creatingConnection = true;
|
|
162
162
|
let isResolved = false;
|
|
163
|
+
// It is import to use it as a function and not as a variable
|
|
164
|
+
// because of k8s changes the env variables
|
|
165
|
+
// and we want to use the new values
|
|
163
166
|
const findServers = () => {
|
|
164
167
|
const userName = process.env.RABBITMQ_USERNAME || 'guest';
|
|
165
168
|
const password = process.env.RABBITMQ_PASSWORD || 'guest';
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -280,6 +280,9 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
280
280
|
this.creatingConnection = true;
|
|
281
281
|
let isResolved = false;
|
|
282
282
|
|
|
283
|
+
// It is import to use it as a function and not as a variable
|
|
284
|
+
// because of k8s changes the env variables
|
|
285
|
+
// and we want to use the new values
|
|
283
286
|
const findServers = () => {
|
|
284
287
|
const userName = process.env.RABBITMQ_USERNAME || 'guest';
|
|
285
288
|
const password = process.env.RABBITMQ_PASSWORD || 'guest';
|