@autofleet/rabbit 1.0.21 → 1.0.22
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 +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ class RabbitMq {
|
|
|
38
38
|
if (this.connection !== null) {
|
|
39
39
|
return this.connection;
|
|
40
40
|
}
|
|
41
|
+
this.creatingConnection = true;
|
|
41
42
|
let host = process.env.RABBITMQ_SERVICE_HOST || '35.240.13.28';
|
|
42
43
|
let connection = await amqp_connection_manager_1.connect([`amqp://${host}`]);
|
|
43
44
|
this.connection = connection;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -42,11 +42,10 @@ class RabbitMq {
|
|
|
42
42
|
this.em.on(connectionCreatedConst, resolve);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
45
|
if (this.connection !== null) {
|
|
47
46
|
return this.connection;
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
this.creatingConnection = true;
|
|
50
49
|
let host: string = process.env.RABBITMQ_SERVICE_HOST || '35.240.13.28';
|
|
51
50
|
let connection: AmqpConnectionManager = await connect([`amqp://${host}`]);
|
|
52
51
|
this.connection = connection;
|