Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make use of delayed execution on connection

  • Loading branch information...
commit 88506fca6287850579d333adfee1386c0960a4a4 1 parent 0b4bc0a
@Jae Jae authored
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);
};
};
Please sign in to comment.
Something went wrong with that request. Please try again.