diff --git a/README.md b/README.md index fa88704..9ec0e3b 100644 --- a/README.md +++ b/README.md @@ -226,8 +226,8 @@ class UploadPictureConsumer implements ConsumerInterface - [ ] Dynamic consumer - [ ] Batch consumer - [ ] Anon consumer -- [x] Rpc client (в разработке) -- [x] Rpc server (в разработке) +- [x] Rpc client +- [x] Rpc server - [ ] Logged channel ## Credits diff --git a/install/version.php b/install/version.php index 65710a0..ecdbf33 100644 --- a/install/version.php +++ b/install/version.php @@ -4,6 +4,6 @@ */ $arModuleVersion = [ - 'VERSION' => '1.1.0', - 'VERSION_DATE' => '2021-07-13 00:00:00', + 'VERSION' => '1.1.1', + 'VERSION_DATE' => '2021-07-13 15:00:00', ]; diff --git a/lib/Examples/RandomIntServer.php b/lib/Examples/RandomIntServer.php index d907a41..b8eeab7 100644 --- a/lib/Examples/RandomIntServer.php +++ b/lib/Examples/RandomIntServer.php @@ -2,14 +2,16 @@ namespace Proklung\RabbitMq\Examples; +use PhpAmqpLib\Message\AMQPMessage; + /** * Class RandomIntServer * @package Proklung\RabbitMq\Examples */ class RandomIntServer { - public function execute() + public function execute(AMQPMessage $request) { - - } + return ['request_id' => mt_rand(1, 123)]; + } } \ No newline at end of file