()
| 55 | } |
| 56 | |
| 57 | func (c *Tx) init() { |
| 58 | c.cmdable = c.Process |
| 59 | c.statefulCmdable = c.Process |
| 60 | |
| 61 | c.initHooks(hooks{ |
| 62 | dial: c.baseClient.dial, |
| 63 | process: c.baseClient.process, |
| 64 | pipeline: c.baseClient.processPipeline, |
| 65 | txPipeline: c.baseClient.processTxPipeline, |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | func (c *Tx) Process(ctx context.Context, cmd Cmder) error { |
| 70 | err := c.processHook(ctx, cmd) |
no test coverage detected