1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-07 12:42:55 +03:00

rename Pipelineable to Pipeliner

This commit is contained in:
Felipe Cavalcanti
2017-05-02 12:00:53 -03:00
parent 6fca4d5ad0
commit eeb4d09198
16 changed files with 43 additions and 43 deletions

View File

@@ -674,7 +674,7 @@ func (c *ClusterClient) reaper(idleCheckFrequency time.Duration) {
}
}
func (c *ClusterClient) Pipeline() Pipelineable {
func (c *ClusterClient) Pipeline() Pipeliner {
pipe := Pipeline{
exec: c.pipelineExec,
}
@@ -683,7 +683,7 @@ func (c *ClusterClient) Pipeline() Pipelineable {
return &pipe
}
func (c *ClusterClient) Pipelined(fn func(Pipelineable) error) ([]Cmder, error) {
func (c *ClusterClient) Pipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.Pipeline().pipelined(fn)
}
@@ -797,7 +797,7 @@ func (c *ClusterClient) checkMovedErr(cmd Cmder, failedCmds map[*clusterNode][]C
}
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
func (c *ClusterClient) TxPipeline() Pipelineable {
func (c *ClusterClient) TxPipeline() Pipeliner {
pipe := Pipeline{
exec: c.txPipelineExec,
}
@@ -806,7 +806,7 @@ func (c *ClusterClient) TxPipeline() Pipelineable {
return &pipe
}
func (c *ClusterClient) TxPipelined(fn func(Pipelineable) error) ([]Cmder, error) {
func (c *ClusterClient) TxPipelined(fn func(Pipeliner) error) ([]Cmder, error) {
return c.TxPipeline().pipelined(fn)
}