screwdriver-buildcluster-queue-worker 2.23.1 → 2.23.2

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4,6 +4,9 @@ const conf = require('config');
4
4
  const httpdConfig = conf.get('httpd'); // Setup HTTPd
5
5
  const server = require('./lib/server');
6
6
  const receiver = require('./receiver');
7
- const connection = receiver.listen();
8
7
 
9
- server(httpdConfig, connection);
8
+ (async () => {
9
+ const connection = await receiver.listen();
10
+
11
+ server(httpdConfig, connection);
12
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-buildcluster-queue-worker",
3
- "version": "2.23.1",
3
+ "version": "2.23.2",
4
4
  "description": "An amqp connection manager implementation that consumes jobs from Rabbitmq queue.",
5
5
  "main": "index.js",
6
6
  "scripts": {