@@ -49,20 +49,20 @@ class ProducerImpl : virtual public ClientImpl, public std::enable_shared_from_t
4949 void shutdown () override ;
5050
5151 /* *
52- * Note we requrie application to transfer ownership of the message to send to avoid concurrent modification during
53- * sent.
52+ * Note we require application to transfer ownership of the message
53+ * to send to avoid concurrent modification during sent.
5454 *
55- * Regardless of the send result, SendReceipt would have the std::unique_ptr<const Message>, facilliating
56- * application to conduct customized retry policy.
55+ * Regardless of the send result, SendReceipt would have the std::unique_ptr<const Message>,
56+ * facilitating application to conduct customized retry policy.
5757 */
5858 SendReceipt send (MessageConstPtr message, std::error_code& ec) noexcept ;
5959
6060 /* *
61- * Note we requrie application to transfer ownership of the message to send to avoid concurrent modification during
62- * sent.
61+ * Note we require application to transfer ownership of the message
62+ * to send to avoid concurrent modification during sent.
6363 *
64- * Regardless of the send result, SendReceipt would have the std::unique_ptr<const Message>, facilliating
65- * application to conduct customized retry policy.
64+ * Regardless of the send result, SendReceipt would have the std::unique_ptr<const Message>,
65+ * facilitating application to conduct customized retry policy.
6666 */
6767 void send (MessageConstPtr message, SendCallback callback);
6868
@@ -74,13 +74,10 @@ class ProducerImpl : virtual public ClientImpl, public std::enable_shared_from_t
7474 }
7575
7676 /* *
77- * Note we requrie application to transfer ownership of the message to send to avoid concurrent modification during
78- * sent.
79- *
80- * TODO: Refine this API. Current API is not good enough as it cannot handle the message back to its caller on publish
81- * failure.
77+ * Note we require application to transfer ownership of the message
78+ * to send to avoid concurrent modification during sent.
8279 */
83- void send (MessageConstPtr message, std::error_code& ec, Transaction& transaction);
80+ SendReceipt send (MessageConstPtr message, std::error_code& ec, Transaction& transaction);
8481
8582 /* *
8683 * Check if the RPC client for the target host is isolated or not
0 commit comments