Permalink
Browse files

Merge pull request #12 from joscha/patch-1

Fixed sample
  • Loading branch information...
jdarling committed Dec 18, 2012
2 parents 2f86979 + 94b2244 commit d6942ae4b5aa8a4c9532ad8eb4caa4da94b1ef9a
Showing with 2 additions and 2 deletions.
  1. +2 −2 readme.md
View
@@ -175,7 +175,7 @@ var MongoMQ = require('../lib/MongoMQ').MongoMQ;
var repl = require('repl');
var queue = new MongoMQ({
- autoStart: false
+ autoStart: true
});
var r = repl.start({
@@ -211,7 +211,7 @@ r.context.logAny = function(){
queue.onAny(logMsg);
};
-r.context.eatTest = function(){
+r.context.listen = function(){
queue.on('test', eatTest);
};

0 comments on commit d6942ae

Please sign in to comment.