mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 10:47:44 +08:00
fix method call mistake of no function setClient in BaseClient
This commit is contained in:
parent
1c3091af7d
commit
73aaa403db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user