Permalink
Browse files

Fix PubSub example for a flawless first try.

  • Loading branch information...
1 parent c60d5ab commit 6225cd5e9a956b521b78d770d60a211a32599988 Mauro Pompilio committed Nov 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/pubsub.rb
View
@@ -21,11 +21,11 @@
end
on.message do |channel, message|
- puts "##{klass}: #{message}"
+ puts "##{channel}: #{message}"
redis.unsubscribe if message == "exit"
end
on.unsubscribe do |channel, subscriptions|
- puts "Unsubscribed from ##{klass} (#{subscriptions} subscriptions)"
+ puts "Unsubscribed from ##{channel} (#{subscriptions} subscriptions)"
end
end

0 comments on commit 6225cd5

Please sign in to comment.