Permalink
Browse files

Add message about future breakage from node_redis

  • Loading branch information...
1 parent aed569d commit 28298e4a61ab276ce3b03ceee746e1e53f607daf @maritz committed Jan 24, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/pubsub.js
View
@@ -45,7 +45,13 @@ var initializePubSub = function initializePubSub (callback) {
if (!pub_sub_client) {
return Nohm.logError('A second redis client must be specified to use pub/sub methods. Please declare one.');
- } else if (pub_sub_client.subscriptions === true) {
+ } else if (pub_sub_client.subscriptionsa === true) {
+ /**
+ * This will break in the next node_redis version and we'll have to update to
+ * pub_sub_client.pub_sub_mode
+ *
+ * Should cause all pubsub tests to fail, so will be relatively easy to spot.
+ */
// already in pubsub mode, don't need to initialize it again.
if (typeof(callback) === 'function') {
callback();

0 comments on commit 28298e4

Please sign in to comment.