]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Avoid RabbitMQ consumer to loop
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 20 Oct 2016 19:17:03 +0000 (21:17 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 20 Oct 2016 19:17:03 +0000 (21:17 +0200)
commit1e3d74a9cfdaf708632a97660e1811dd819f7df4
treeb9de4dad6c4034219661e170f156b3ce76b069fe
parent576d285ddf1c9b4c78124b90fb902d0a57dd2a00
Avoid RabbitMQ consumer to loop

When the `parseEntry` returns null it means the entry already exists in the database. Sending `false` as return, will requeue the message which will then loop forever.
src/Wallabag/ImportBundle/Consumer/AbstractConsumer.php