diff --git a/Annotation/Rpc/RpcService.php b/Annotation/Rpc/RpcService.php index cd3e8dd3..0d22b138 100644 --- a/Annotation/Rpc/RpcService.php +++ b/Annotation/Rpc/RpcService.php @@ -51,7 +51,7 @@ use Snowflake\Snowflake; { // TODO: Change the autogenerated stub if ($handler[0] instanceof IProducer) { - call_user_func([$handler[0], 'instance']); + $handler[0]->initClient(); } $rpc = Snowflake::app()->getRpc();