def service_addresses!(service, index = nil)
      meta = {}
      resp = _service.get(service, :all, {index: index, wait: '2s'}, meta)

      if (nindex = meta[:index]) != index
        addresses = resp.map do |address|
          {
            id: address.ServiceID,
            ip: address.ServiceAddress,
            node: address.Node,
            port: address.ServicePort
          }
        end

        [addresses, nindex]
      end
    end
def service_addresses!(service, index = nil)
      meta = {}
      resp = _service.get(service, :all, {index: index, wait: '2s'}, meta)

      if (nindex = meta[:index]) != index
        addresses = resp.map do |address|
          {
            id: address.ServiceID,
            ip: address.ServiceAddress,
            node: address.Node,
            port: address.ServicePort
          }
        end

        [addresses, nindex]
      end
    end
Non-blocking request for service_addresses.