public void run()

in ratis-logservice/src/main/java/org/apache/ratis/logservice/server/LogServer.java [199:214]


        public void run() {

            while (true) {
                try {
                    metaClient.io().send(() -> MetaServiceProtoUtil.
                            toHeartbeatRequestProto(peer).toByteString());
                    Thread.sleep(heartbeatInterval);
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                    return;
                } catch (IOException e) {
                    LOG.warn("Heartbeat request failed with exception", e);
                }
            }

        }