This is an automated email from the ASF dual-hosted git repository. tardieu pushed a commit to branch uuid in repository https://gitbox.apache.org/repos/asf/openwhisk-composer.git
commit c0499d8100095f5ca38f2f2b175d4702db954fc3 Author: Olivier Tardieu <tard...@users.noreply.github.com> AuthorDate: Wed Nov 13 18:28:13 2019 -0500 Avoid loading uuid when not needed --- conductor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conductor.js b/conductor.js index 7d163b9..1ffb348 100644 --- a/conductor.js +++ b/conductor.js @@ -42,7 +42,6 @@ module.exports = { generate } // runtime code function main (composition) { const openwhisk = require('openwhisk') - const uuid = require('uuid').v4 let wsk let db const expiration = 86400 // expire redis key after a day @@ -101,7 +100,7 @@ function main (composition) { return } const stack = [{ marker: true }].concat(p.s.stack) - const barrierId = uuid() + const barrierId = require('uuid').v4() console.log(`barrierId: ${barrierId}, spawning: ${array.length}`) if (!wsk) wsk = openwhisk(p.s.openwhisk) if (!db) db = createRedisClient(p)