diff --git a/README.md b/README.md index 2928798d..06d8a005 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ $producer->success(function($result) { $producer->error(function($errorCode, $context) { var_dump($errorCode); }); -$producer->send(); +$producer->send(true); ``` ### Synchronous mode diff --git a/README_CH.md b/README_CH.md index b04d848e..acf7d790 100644 --- a/README_CH.md +++ b/README_CH.md @@ -78,7 +78,7 @@ $producer->success(function($result) { $producer->error(function($errorCode, $context) { var_dump($errorCode); }); -$producer->send(); +$producer->send(true); ``` ### 同步方式调用生产者 diff --git a/example/Producer.php b/example/Producer.php index a69ce0da..06a0341e 100644 --- a/example/Producer.php +++ b/example/Producer.php @@ -31,4 +31,4 @@ $producer->error(function($errorCode) { var_dump($errorCode); }); -$producer->send(); +$producer->send(true);