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.
- package/index.js +5 -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
|
-
|
|
8
|
+
(async () => {
|
|
9
|
+
const connection = await receiver.listen();
|
|
10
|
+
|
|
11
|
+
server(httpdConfig, connection);
|
|
12
|
+
})();
|