func transmitRequest(o io.Writer, req *gomemcached.MCRequest) (int, error) { if o == nil { return 0, errNoConn } n, err := req.Transmit(o) if TransmitHook != nil { TransmitHook(req, n, err) } return n, err }
func transmitRequest(o io.Writer, req *gomemcached.MCRequest) (err error) { if o == nil { return noConn } return req.Transmit(o) }