Browse Source

Merge branch 'master' of github.com:celery/celery

Ask Solem 9 years ago
parent
commit
80453713b1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/userguide/extending.rst

+ 1 - 1
docs/userguide/extending.rst

@@ -46,7 +46,7 @@ whenever the connection is established:
 
     def send_me_a_message(self, who='world!', producer=None):
         with app.producer_or_acquire(producer) as producer:
-            producer.send(
+            producer.publish(
                 {'hello': who},
                 serializer='json',
                 exchange=my_queue.exchange,