unrolled loop

This commit is contained in:
brianc 2010-10-10 19:09:24 -05:00
parent 32d6fd4115
commit 5a8061bf5f
2 changed files with 4 additions and 5 deletions

View File

@ -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() {

View File

@ -51,8 +51,6 @@ test = function(name, action) {
console.log(name);
console.log(e.toString());
}
test.tabout -= 2;
};
test.tabout = 0;