From 84ca2a54cc9c4372568907b4ad4785ca65704ac9 Mon Sep 17 00:00:00 2001 From: Jeff Wolski Date: Wed, 30 Sep 2015 12:49:48 -0700 Subject: [PATCH] Update main.js after TChannel breaking (?) changes --- main.js | 13 +++++++------ package.json | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index 1e0167b7..8cf6c4ee 100755 --- a/main.js +++ b/main.js @@ -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) { diff --git a/package.json b/package.json index 71f3a8cd..913b3b5a 100644 --- a/package.json +++ b/package.json @@ -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"