statsdmetrics/client/__init__.py
def flush(self):
        # type: () -> BatchClient
        """Send buffered metrics in batch requests"""

        address = self.remote_address
        while len(self._batches) > 0:
            self._socket.sendto(self._batches[0], address)
            self._batches.popleft()
        return self
def flush(self):
        # type: () -> BatchClient
        """Send buffered metrics in batch requests"""

        address = self.remote_address
        while len(self._batches) > 0:
            self._socket.sendto(self._batches[0], address)
            self._batches.popleft()
        return self
Send buffered metrics in batch requests