fix(sync.go):fix wg.Add SourceAddress bug

v4
zhuhuikang 6 years ago
parent 3dbb4d2936
commit a7ae486172
  1. 2
      src/redis-shake/sync.go

@ -95,7 +95,7 @@ func (cmd *CmdSync) Main() {
} }
var wg sync.WaitGroup var wg sync.WaitGroup
wg.Add(len(conf.Options.SourceAddress)) wg.Add(len(conf.Options.SourceAddressList))
for i := 0; i < int(conf.Options.SourceParallel); i++ { for i := 0; i < int(conf.Options.SourceParallel); i++ {
go func() { go func() {

Loading…
Cancel
Save