Fixed typo for Hyperf\Nacos\GrpcClient (#6499)

This commit is contained in:
Deeka Wong 2024-01-25 09:38:55 +08:00 committed by GitHub
parent d1f8814a58
commit 5956a2bc40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,7 +222,7 @@ class GrpcClient
$response->dataId, $response->dataId,
$response $response
), ),
$response instanceof NotifySubscriberRequest => $this->hanldeNaming($response), $response instanceof NotifySubscriberRequest => $this->handleNaming($response),
}; };
$this->listen(); $this->listen();
@ -260,7 +260,7 @@ class GrpcClient
} }
} }
protected function hanldeNaming(NotifySubscriberRequest $response): void protected function handleNaming(NotifySubscriberRequest $response): void
{ {
$serviceInfo = $response->serviceInfo; $serviceInfo = $response->serviceInfo;
$key = $serviceInfo->toKeyString(); $key = $serviceInfo->toKeyString();
@ -280,6 +280,14 @@ class GrpcClient
} }
} }
/**
* @deprecated since 3.1, use handleNaming instead.
*/
protected function hanldeNaming(NotifySubscriberRequest $response)
{
$this->handleNaming($response);
}
protected function serverCheck(): bool protected function serverCheck(): bool
{ {
$request = new ServerCheckRequest(); $request = new ServerCheckRequest();