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

[openwhisk-composer] branch uuid created (now c0499d8)

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

tardieu pushed a change to branch uuid
in repository https://gitbox.apache.org/repos/asf/openwhisk-composer.git.


      at c0499d8  Avoid loading uuid when not needed

This branch includes the following new commits:

     new c0499d8  Avoid loading uuid when not needed

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[openwhisk-composer] 01/01: Avoid loading uuid when not needed

Posted by ta...@apache.org.
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 <ta...@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)