From 5bfe64ac3e1391ef0aeed154915ac75f5f6bbf9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 11:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Route/{RpcService.php => RpcClient.php} | 2 +- Annotation/Rpc/Producer.php | 37 ------------------- .../Rpc/{RpcService.php => RpcProducer.php} | 6 +-- 3 files changed, 3 insertions(+), 42 deletions(-) rename Annotation/Route/{RpcService.php => RpcClient.php} (92%) delete mode 100644 Annotation/Rpc/Producer.php rename Annotation/Rpc/{RpcService.php => RpcProducer.php} (82%) diff --git a/Annotation/Route/RpcService.php b/Annotation/Route/RpcClient.php similarity index 92% rename from Annotation/Route/RpcService.php rename to Annotation/Route/RpcClient.php index 378c5c0c..5b259bc7 100644 --- a/Annotation/Route/RpcService.php +++ b/Annotation/Route/RpcClient.php @@ -15,7 +15,7 @@ use Snowflake\Exception\ConfigException; use Snowflake\Exception\NotFindClassException; use Snowflake\Snowflake; -#[\Attribute(\Attribute::TARGET_METHOD)] class RpcService extends Attribute +#[\Attribute(\Attribute::TARGET_METHOD)] class RpcClient extends Attribute { private string $uri = ''; diff --git a/Annotation/Rpc/Producer.php b/Annotation/Rpc/Producer.php deleted file mode 100644 index 657deff3..00000000 --- a/Annotation/Rpc/Producer.php +++ /dev/null @@ -1,37 +0,0 @@ -config = ['host' => $host, 'port' => $port, 'mode' => $mode, 'timeout' => $timeout]; + $this->config = ['port' => $port, 'mode' => $mode, 'timeout' => $timeout]; }