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]; }