This commit is contained in:
2021-03-23 16:38:12 +08:00
parent ed75975b2a
commit aa3da9e0e1
2 changed files with 4 additions and 6 deletions
-6
View File
@@ -49,14 +49,8 @@ use Snowflake\Snowflake;
*/
public function execute(array $handler): mixed
{
// TODO: Change the autogenerated stub
if ($handler[0] instanceof IProducer) {
$handler[0]->initClient();
}
$rpc = Snowflake::app()->getRpc();
$rpc->addProducer($this->cmd, $handler, $this->config);
return parent::execute($handler);
}