From f236d6be480d5131b94784cc2904fd1fdd595c4c Mon Sep 17 00:00:00 2001 From: xtzhang Date: Wed, 6 Sep 2017 13:35:42 +0800 Subject: [PATCH] fix err chan size in server.go --- v1/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/server.go b/v1/server.go index c8153fe91..e2e8a038e 100644 --- a/v1/server.go +++ b/v1/server.go @@ -170,7 +170,7 @@ func (server *Server) SendGroup(group *tasks.Group, sendConcurrency int) ([]*bac var wg sync.WaitGroup wg.Add(len(group.Tasks)) - errorsChan := make(chan error) + errorsChan := make(chan error, len(group.Tasks)*2) // Init group server.backend.InitGroup(group.GroupUUID, group.GetUUIDs())