Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more pool code removed

  • Loading branch information...
commit a758d93295afa2c5fc91ab01cc7183142922be25 1 parent ff4a84d
@sidorares sidorares authored
Showing with 1 addition and 5 deletions.
  1. +1 −3 lib/mysql-native/index.js
  2. +0 −2  lib/mysql-native/socketclient.js
View
4 lib/mysql-native/index.js
@@ -1,7 +1,5 @@
var client = require('./client');
-var pool = require('./pool');
exports.createClient = client.createClient;
exports.createTCPClient = client.createTCPClient;
-exports.createUNIXClient = client.createUNIXClient;
-exports.pool = pool.pool;
+exports.createUNIXClient = client.createUNIXClient;
View
2  lib/mysql-native/socketclient.js
@@ -99,7 +99,6 @@ SocketClient.prototype.dispatch_packet = function(packet) {
if (this.queued_cmds.top().process_packet(packet))
{
this.queued_cmds.shift();
- this.connection.emit('queue', this.queued_cmds.length);
this.dispatch_packet();
}
}
@@ -113,7 +112,6 @@ SocketClient.prototype.add = function(c) {
c.connection = this;
var need_start_queue = this.connection.connected && this.queued_cmds.empty();
this.queued_cmds.push(c);
- this.connection.emit('queue', this.queued_cmds.length);
if (need_start_queue)
this.dispatch_packet();

0 comments on commit a758d93

Please sign in to comment.
Something went wrong with that request. Please try again.