mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
unrolled loop
This commit is contained in:
parent
32d6fd4115
commit
5a8061bf5f
@ -48,11 +48,12 @@ Client.prototype.connect = function() {
|
||||
|
||||
this.stream.on('data', function(data) {
|
||||
var parser = new Parser(data);
|
||||
var result = parser.parse();
|
||||
result.forEach(function(msg) {
|
||||
var msg = parser.parseMessage();
|
||||
while(msg) {
|
||||
self.emit('message', msg);
|
||||
self.emit(msg.name, msg);
|
||||
});
|
||||
msg = parser.parseMessage();
|
||||
}
|
||||
});
|
||||
|
||||
this.on('ReadyForQuery', function() {
|
||||
|
||||
@ -51,8 +51,6 @@ test = function(name, action) {
|
||||
console.log(name);
|
||||
console.log(e.toString());
|
||||
}
|
||||
|
||||
|
||||
test.tabout -= 2;
|
||||
};
|
||||
test.tabout = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user