func (c *Client) Flush(r *protocol.FlushRequest) (*protocol.FlushResponse, error) {
	// TODO(kl): Handle of multiple flushes on a single request.
	t := r.OldTag
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.FlushResponse); ok {
		c.flush(t)
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Flush flushes a previous request.
Flush flushes a previous request.
// Flush flushes a previous request .
func (c *Client) Flush(r *protocol.FlushRequest) (*protocol.FlushResponse, error) {
	t := r.OldTag
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.FlushResponse); ok {
		c.flush(t)
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Flush ( r * protocol . FlushRequest ) ( * protocol . FlushResponse , error ) { t := r . OldTag resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . FlushResponse ) ; ok { c . flush ( t ) return resp , nil } return nil , ErrInvalidResponse }
Flush flushes a previous request.
Flush flushes a previous request .
// TODO(kl): Handle of multiple flushes on a single request.