This commit is contained in:
huangzhhui 2019-11-07 12:21:14 +08:00
parent bfd15a2ae0
commit 16c0934241

View File

@ -12,7 +12,6 @@ declare(strict_types=1);
namespace Hyperf\RpcClient;
use Hyperf\Consul\Agent;
use Hyperf\Consul\Health;
use Hyperf\Consul\HealthInterface;
use Hyperf\Contract\ConfigInterface;
@ -213,7 +212,7 @@ abstract class AbstractServiceClient
if ($passing) {
$address = $service['Address'] ?? '';
$port = (int)$service['Port'] ?? 0;
$port = (int) $service['Port'] ?? 0;
// @TODO Get and set the weight property.
$address && $port && $nodes[] = new Node($address, $port);
}