mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
make pulseQueryQueue explicitly private
This commit is contained in:
parent
4724444e3d
commit
039c394cb1
@ -87,7 +87,7 @@ p.connect = function() {
|
||||
}
|
||||
this.activeQuery = null;
|
||||
self.readyForQuery = true;
|
||||
self.pulseQueryQueue();
|
||||
self._pulseQueryQueue();
|
||||
});
|
||||
|
||||
con.on('error', function(error) {
|
||||
@ -104,7 +104,7 @@ p.connect = function() {
|
||||
});
|
||||
};
|
||||
|
||||
p.pulseQueryQueue = function() {
|
||||
p._pulseQueryQueue = function() {
|
||||
if(this.readyForQuery===true) {
|
||||
this.activeQuery = this.queryQueue.shift();
|
||||
if(this.activeQuery) {
|
||||
@ -134,7 +134,7 @@ p.query = function(config, values, callback) {
|
||||
|
||||
var query = new Query(config);
|
||||
this.queryQueue.push(query);
|
||||
this.pulseQueryQueue();
|
||||
this._pulseQueryQueue();
|
||||
return query;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user