Permalink
Browse files

fixed a small typo in the README code

  • Loading branch information...
1 parent 370ee9f commit 3e9f37ecf67eaffd74bf4c6b42a112f93511dd8c @cacois cacois committed Jan 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -23,7 +23,7 @@ var worker = new RedisLockingWorker({
worker.on("acquired", function(lastAttempt) {
if (Math.random() <= SUCCESS_CHANCE) {
console.log("Completed work successfully, cleaning up!");
- lock.done(lastAttempt);
+ worker.done(lastAttempt);
} else {
// oh no, we failed to do work!
console.log("Failed to do work, hopefully someone else will have better luck!");
@@ -122,4 +122,4 @@ For an example implementation that uses cluster to fork one worker per CPU core,
Worker 7 Status message from lock: Checking status of work from attempt #3
Worker 7 Status message from lock: Lock key is gone, someone else completed the work and deleted the lock
Worker 8 Status message from lock: Checking status of work from attempt #3
- Worker 8 Status message from lock: Lock key is gone, someone else completed the work and deleted the lock
+ Worker 8 Status message from lock: Lock key is gone, someone else completed the work and deleted the lock

0 comments on commit 3e9f37e

Please sign in to comment.