(cmd string, args ...interface{})
| 66 | } |
| 67 | |
| 68 | func (c *Client) Send(cmd string, args ...interface{}) error { |
| 69 | if err := c.conn.Send(cmd, args...); err != nil { |
| 70 | c.Close() |
| 71 | return errors.Trace(err) |
| 72 | } |
| 73 | return nil |
| 74 | } |
| 75 | |
| 76 | func (c *Client) Flush() error { |
| 77 | if err := c.conn.Flush(); err != nil { |
no test coverage detected