public NetworkClient.InFlightRequest completeLastSent(String node) {
        NetworkClient.InFlightRequest inFlightRequest = requestQueue(node).pollFirst();
        inFlightRequestCount.decrementAndGet();
        return inFlightRequest;
    }
Complete the last request that was sent to a particular node.
@param node The node the request was sent to
@return The request
clients/src/main/java/org/apache/kafka/clients/InFlightRequests.java