docs: private CompletableFuture<QueryResponse> queryForward(QueryRequest request) {
      if (raft.getLeader() == null) {
        return CompletableFuture.completedFuture(logResponse(QueryResponse.builder()
            .withStatus(RaftResponse.Status.ERROR)
            .withError(RaftError.Type.NO_LEADER)
            .build()));
      }
  
      log.trace("Forwarding {}", request);
      return forward(request, raft.getProtocol()::query)
          .exceptionally(error -> QueryResponse.builder()
              .withStatus(RaftResponse.Status.ERROR)
              .withError(RaftError.Type.NO_LEADER)
              .build())
          .thenApply(this::logResponse);
    }