mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Add ForEachMaster API.
This commit is contained in:
@ -22,10 +22,11 @@ type Pipeline struct {
|
||||
closed int32
|
||||
}
|
||||
|
||||
func (pipe *Pipeline) Process(cmd Cmder) {
|
||||
func (pipe *Pipeline) Process(cmd Cmder) error {
|
||||
pipe.mu.Lock()
|
||||
pipe.cmds = append(pipe.cmds, cmd)
|
||||
pipe.mu.Unlock()
|
||||
return nil
|
||||
}
|
||||
|
||||
// Close closes the pipeline, releasing any open resources.
|
||||
|
Reference in New Issue
Block a user