From a7ae4861720f6067dddbefa21bc9a93d040b9283 Mon Sep 17 00:00:00 2001 From: zhuhuikang Date: Thu, 16 May 2019 11:51:07 +0800 Subject: [PATCH] fix(sync.go):fix wg.Add SourceAddress bug --- src/redis-shake/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {