From ed75975b2a180a66ce5f0107eb7af863b8519e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 16:35:33 +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 --- Annotation/Rpc/RpcService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();