fix golint issues in core/fx (#486)

This commit is contained in:
Kevin Wan
2021-02-19 17:49:39 +08:00
committed by GitHub
parent c376ffc351
commit f238290dd3
6 changed files with 48 additions and 22 deletions

View File

@@ -2,6 +2,7 @@ package fx
import "github.com/tal-tech/go-zero/core/threading"
// Parallel runs fns parallelly and waits for done.
func Parallel(fns ...func()) {
group := threading.NewRoutineGroup()
for _, fn := range fns {