Skip to content

Commit

Permalink
updates CHANGELOG and improves README
Browse files Browse the repository at this point in the history
  • Loading branch information
videlalvaro committed Jun 4, 2012
1 parent a5a4816 commit 93039ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
The affected settings are: The affected settings are:
* `durable` was changed from `false` to `true`, * `durable` was changed from `false` to `true`,
* `auto_delete` was changed from `true` to `false`. * `auto_delete` was changed from `true` to `false`.
* Adds basic_reject functionality to consumers. A message can be rejected by returning `false` from a callback.


- 2012-05-29 - 2012-05-29
* Merged PR #46 adding compiler passes for the configuration. Now the parameter classes can be overriden. * Merged PR #46 adding compiler passes for the configuration. Now the parameter classes can be overriden.
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ Here's an example callback:


$isUploadSuccess = someUploadPictureMethod(); $isUploadSuccess = someUploadPictureMethod();
if (!$isUploadSuccess) { if (!$isUploadSuccess) {
// If your image upload failed due to a temporary error you can return false
// If you upload an image failed due to a temporary error, from the callback can return `false`, // from your callback so the message will be rejected by the consumer and
// so RabbitMq did not remove the message from the queue, and moved it to the end of the queue // requeued by RabbitMQ.
// (reject & requeue). For any other result of the `execute` method will be removed from the message // Any other value not equal to false will acknowledge the message and remove it
// queue as well handled. // from the queue
return false; return false;
} }
} }
Expand Down

0 comments on commit 93039ac

Please sign in to comment.