You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Refactor js parser
Fix tests to work with Node.js 0.10 Improve average use case speed by up to 20% Fix some small js parser issues
This commit is contained in:
8
index.js
8
index.js
@@ -294,14 +294,10 @@ RedisClient.prototype.init_parser = function () {
|
||||
// Important: Only send results / errors async.
|
||||
// That way the result / error won't stay in a try catch block and catch user things
|
||||
this.reply_parser.send_error = function (data) {
|
||||
process.nextTick(function() {
|
||||
self.return_error(data);
|
||||
});
|
||||
self.return_error(data);
|
||||
};
|
||||
this.reply_parser.send_reply = function (data) {
|
||||
process.nextTick(function() {
|
||||
self.return_reply(data);
|
||||
});
|
||||
self.return_reply(data);
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user