Skip to content

Commit

Permalink
Update main.js after TChannel breaking (?) changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Sep 30, 2015
1 parent 387f81d commit 84ca2a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ function main(args) {

ringpop.setupChannel();

ringpop.channel.on('listening', function onListening() {
ringpop.channel.removeListener('listening', onListening);
ringpop.bootstrap(program.hosts);
});

var listenParts = listen.split(':');
ringpop.channel.listen(Number(listenParts[1]), listenParts[0]);
var port = Number(listenParts[1]);
var host = listenParts[0];
tchannel.listen(port, host, onListening);

function onListening() {
ringpop.bootstrap(program.hosts);
}
}

function createLogger(name) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"pre-commit": "^0.0.9",
"tape": "^3.0.3",
"tape-cluster": "2.1.0",
"tchannel": ">2.7.1-alpha",
"tchannel": "^2.10.1",
"time-mock": "^0.1.2",
"tryit": "^1.0.1",
"uber-licence": "^1.1.0"
Expand Down

0 comments on commit 84ca2a5

Please sign in to comment.