src/ConnectionAdapters/AbstractAdapter.php
protected function getServiceIp(string $serviceName, bool $force = false): string
    {
        if (!isset($this->serviceIps[$serviceName]) || $force) {
            $serviceIp = $this->discovery->discover($serviceName);
            $this->serviceIps[$serviceName] = $serviceIp;
        }

        return $this->serviceIps[$serviceName];
    }
protected function getServiceIp(string $serviceName, bool $force = false): string
    {
        if (!isset($this->serviceIps[$serviceName]) || $force) {
            $serviceIp = $this->discovery->discover($serviceName);
            $this->serviceIps[$serviceName] = $serviceIp;
        }

        return $this->serviceIps[$serviceName];
    }
protected function getServiceIp ( string $ serviceName , bool $ force = false ) : string { if ( ! isset ( $ this -> serviceIps [ $ serviceName ] ) || $ force ) { $ serviceIp = $ this -> discovery -> discover ( $ serviceName ) ; $ this -> serviceIps [ $ serviceName ] = $ serviceIp ; } return $ this -> serviceIps [ $ serviceName ] ; }
Get service IP from service discovery

@param string $serviceName
@param bool   $force
@return string
Get service IP from service discovery