File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff 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-
161143Connection . prototype . sendCopyFail = function ( msg ) {
162144 this . endCopyFrom ( msg ) ;
163145} ;
You can’t perform that action at this time.
0 commit comments