Skip to content

Commit

Permalink
Make XBR key rotation in seconds (previously ms) (crossbario#445)
Browse files Browse the repository at this point in the history
* Make XBR key rotation in seconds (previously ms)

* Attempt to fix CI
  • Loading branch information
om26er authored Jul 10, 2019
1 parent 255da0c commit 5488f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ addons:

before_install:
- sudo pip3 install --no-cache-dir -U scons boto taschenmesser
- rm -rf node_modules/websocket

before_script:
- docker run -d -v $PWD/.crossbar:/node -p 8080:8080 -p 8090:8090 -u $UID crossbario/crossbar --cbdir /node
Expand Down
2 changes: 1 addition & 1 deletion lib/xbr/keyseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ KeySeries.prototype._rotate = function(context) {
context.onRotate(context);
// Rotate the keys
// FIXME: make this to wait for the above onRotate callback to finish
setTimeout(context._rotate, context.interval, context);
setTimeout(context._rotate, context.interval * 1000, context);
};

KeySeries.prototype.stop = function() {
Expand Down

0 comments on commit 5488f41

Please sign in to comment.