Skip to content

Commit fa3b1cc

Browse files
committed
remove pause/resumeDrain functions from native code as disccued in issue brianc#515
1 parent 732fb7c commit fa3b1cc

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

lib/native/index.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,7 @@ Connection.prototype._pulseQueryQueue = function(initialConnection) {
118118
var query = this._queryQueue.shift();
119119
if(!query) {
120120
if(!initialConnection) {
121-
//TODO remove all the pause-drain stuff for v1.0
122-
if(this._drainPaused) {
123-
this._drainPaused++;
124-
} else {
125-
this.emit('drain');
126-
}
121+
this.emit('drain');
127122
}
128123
return;
129124
}
@@ -145,19 +140,6 @@ Connection.prototype._pulseQueryQueue = function(initialConnection) {
145140
}
146141
};
147142

148-
//TODO remove all the pause-drain stuff for v1.0
149-
Connection.prototype.pauseDrain = function() {
150-
this._drainPaused = 1;
151-
};
152-
153-
//TODO remove all the pause-drain stuff for v1.0
154-
Connection.prototype.resumeDrain = function() {
155-
if(this._drainPaused > 1) {
156-
this.emit('drain');
157-
}
158-
this._drainPaused = 0;
159-
};
160-
161143
Connection.prototype.sendCopyFail = function(msg) {
162144
this.endCopyFrom(msg);
163145
};

0 commit comments

Comments
 (0)