1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Update comments.

This commit is contained in:
Matt Ranney
2010-09-17 15:42:00 -07:00
parent bcbf3834e1
commit 48fd5f712e

View File

@@ -403,7 +403,7 @@ RedisClient.prototype.return_error = function (err) {
command_obj.callback(err); command_obj.callback(err);
} else { } else {
console.log("no callback to send error: " + err.stack); console.log("no callback to send error: " + err.stack);
// this will probably not make it anywhere useful, but we might as well try // this will probably not make it anywhere useful, but we might as well throw
throw err; throw err;
} }
}; };
@@ -424,7 +424,7 @@ RedisClient.prototype.return_reply = function (reply_buffer) {
} }
command_obj.callback(null, reply_buffer); command_obj.callback(null, reply_buffer);
} else { } else {
if (this.debug_mode) { if (exports.debug_mode) {
console.log("no callback for reply: " + reply_buffer.toString()); console.log("no callback for reply: " + reply_buffer.toString());
} }
} }
@@ -562,10 +562,8 @@ exports.commands.forEach(function (command) {
}; };
}); });
// Transactions // Transactions - "DISCARD", "WATCH", "UNWATCH",
// "MULTI", "EXEC", "DISCARD", "WATCH", "UNWATCH", // Publish/Subscribe - "SUBSCRIBE", "UNSUBSCRIBE", "PUBLISH",
// Publish/Subscribe
// "SUBSCRIBE", "UNSUBSCRIBE", "PUBLISH",
RedisClient.prototype.multi = function (commands) { RedisClient.prototype.multi = function (commands) {
var self = this; var self = this;