fix method call mistake of no function setClient in BaseClient

This commit is contained in:
York.GU 2019-09-06 21:42:00 +08:00
parent 1c3091af7d
commit 73aaa403db

View File

@ -36,7 +36,7 @@ class BaseClient
if (! ($options['client'] instanceof GrpcClient)) {
throw new InvalidArgumentException('Parameter client have to instanceof Hyperf\GrpcClient\GrpcClient');
}
$this->setClient($options['client']);
$this->grpcClient = $options['client'];
} else {
$this->grpcClient = new GrpcClient(ApplicationContext::getContainer()->get(ChannelPool::class));
$this->grpcClient->set($hostname, $options);