MCPcopy
hub / github.com/redis/go-redis / pipelineErrInjector

Struct pipelineErrInjector

tx_unwatch_test.go:101–101  ·  view source on GitHub ↗

pipelineErrInjector returns a fixed error for the MULTI/EXEC batch without executing it, simulating a server error reported before EXEC runs (such as -LOADING on the MULTI reply). The watched keys stay armed, so Close must still send UNWATCH.

Source from the content-addressed store, hash-verified

99// -LOADING on the MULTI reply). The watched keys stay armed, so Close must
100// still send UNWATCH.
101type pipelineErrInjector struct{ err error }
102
103func (h *pipelineErrInjector) DialHook(next redis.DialHook) redis.DialHook { return next }
104

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected