Skip to content

Commit

Permalink
node-SDK: Update hfc setDeployWaitTime description
Browse files Browse the repository at this point in the history
The secs parameter is of type number.  It will accept
values that seem invalid but Node.js actually enforces
a minimum and maximum value in setTimeout, so any value
will work.  Need to make this clear in the documentation.
https://jira.hyperledger.org/browse/FAB-126

Change-Id: Ia3e99037df45476492f3792ed23ca154fed95903
Signed-off-by: Caroline Daughtrey <cdaughtr@us.ibm.com>
  • Loading branch information
cdaughtr committed Sep 1, 2016
1 parent 5925f57 commit 9f291fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/node/src/hfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,11 @@ export class Chain {

/**
* Set the deploy wait time in seconds.
* Node.js will automatically enforce a
* minimum and maximum wait time. If the
* number of seconds is larger than 2147483,
* less than 1, or not a number,
* the actual wait time used will be 1 ms.
* @param secs
*/
setDeployWaitTime(secs:number):void {
Expand Down

0 comments on commit 9f291fa

Please sign in to comment.