改名
This commit is contained in:
@@ -56,6 +56,10 @@ use Snowflake\Snowflake;
|
||||
$rpc = Snowflake::app()->getRpc();
|
||||
$rpc->addProducer($this->cmd, $handler, $this->config);
|
||||
|
||||
if ($handler[0] instanceof IProducer) {
|
||||
$handler[0]->initClient();
|
||||
}
|
||||
|
||||
return parent::execute($handler);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,10 +37,6 @@ class Producer extends Component
|
||||
$this->consumers[$name] = $handler[0];
|
||||
|
||||
$this->producers[$name] = $node;
|
||||
|
||||
if ($handler[0] instanceof IProducer) {
|
||||
$handler[0]->initClient();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user