@@ -21,7 +21,7 @@ type clusterNode struct {
21
21
// or more underlying connections. It's safe for concurrent use by
22
22
// multiple goroutines.
23
23
type ClusterClient struct {
24
- commandable
24
+ cmdable
25
25
26
26
opt * ClusterOptions
27
27
@@ -51,7 +51,7 @@ func NewClusterClient(opt *ClusterOptions) *ClusterClient {
51
51
52
52
cmdsInfoOnce : new (sync.Once ),
53
53
}
54
- client .commandable .process = client .process
54
+ client .cmdable .process = client .Process
55
55
56
56
for _ , addr := range opt .Addrs {
57
57
_ = client .nodeByAddr (addr )
@@ -242,7 +242,7 @@ func (c *ClusterClient) cmdSlotAndNode(cmd Cmder) (int, *clusterNode) {
242
242
return slot , c .slotMasterNode (slot )
243
243
}
244
244
245
- func (c * ClusterClient ) process (cmd Cmder ) {
245
+ func (c * ClusterClient ) Process (cmd Cmder ) {
246
246
var ask bool
247
247
slot , node := c .cmdSlotAndNode (cmd )
248
248
@@ -398,11 +398,12 @@ func (c *ClusterClient) reaper(frequency time.Duration) {
398
398
}
399
399
400
400
func (c * ClusterClient ) Pipeline () * Pipeline {
401
- pipe := & Pipeline {
401
+ pipe := Pipeline {
402
402
exec : c .pipelineExec ,
403
403
}
404
- pipe .commandable .process = pipe .process
405
- return pipe
404
+ pipe .cmdable .process = pipe .Process
405
+ pipe .statefulCmdable .process = pipe .Process
406
+ return & pipe
406
407
}
407
408
408
409
func (c * ClusterClient ) Pipelined (fn func (* Pipeline ) error ) ([]Cmder , error ) {
0 commit comments