Permalink
Browse files

make use of delayed execution on connection

  • Loading branch information...
1 parent 0b4bc0a commit 88506fca6287850579d333adfee1386c0960a4a4 @Jae Jae committed Jul 12, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 node-hive.js
View
4 node-hive.js
@@ -6,9 +6,7 @@ var futureConnection = function(config) {
return function(cb) {
var connection = thrift.createConnection(config.server, config.port || 10000, {transport: ttransport.TBufferedTransport, timeout: config.timeout || 1000});
var client = thrift.createClient(ThriftHive, connection);
- connection.addListener("connect", function(){
- cb(client, connection);
- });
+ cb(client, connection);
};
};

0 comments on commit 88506fc

Please sign in to comment.