commit | 0260ba17d34a871889f90afddbcfb7c9015ccd55 | [log] [tgz] |
---|---|---|
author | Julie Hockett <juliehockett@google.com> | Mon Sep 17 12:33:44 2018 -0700 |
committer | Julie Hockett <juliehockett@google.com> | Mon Sep 17 12:44:56 2018 -0700 |
tree | c498f503557fd3f77e65fd35970d2de5714d26b5 | |
parent | 81ae445c214e158c5faafb3926c676080ada847d [diff] |
[bloaty] Pass file to goroutine closure Might help address the -too-many-open-files issue Change-Id: I3e20b79e2b40290a2caaa569cf11a15675be85d7
diff --git a/bloaty/bloaty.go b/bloaty/bloaty.go index 0a5944d..16af3d0 100644 --- a/bloaty/bloaty.go +++ b/bloaty/bloaty.go
@@ -188,10 +188,10 @@ for file := range fileBuffer { wg.Add(1) - go func() { + go func(file string) { run(bloatyPath, file, data) wg.Done() - }() + }(file) } go func() {