You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2019/11/14 13:28:39 UTC

[openwhisk-composer] branch master updated: Avoid loading uuid when not needed (#54)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-composer.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b32d57  Avoid loading uuid when not needed (#54)
5b32d57 is described below

commit 5b32d57a3bf6ddc8924cea995773b25f7c6a487f
Author: Olivier Tardieu <ta...@users.noreply.github.com>
AuthorDate: Thu Nov 14 08:28:31 2019 -0500

    Avoid loading uuid when not needed (#54)
---
 conductor.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/conductor.js b/conductor.js
index f72f501..f37d152 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)