diff --git a/src/redis-shake/sync.go b/src/redis-shake/sync.go index 21ec967..603c2ac 100644 --- a/src/redis-shake/sync.go +++ b/src/redis-shake/sync.go @@ -95,7 +95,7 @@ func (cmd *CmdSync) Main() { } 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++ { go func() {