fix: align atomic variables for 32bit arch (#11475)

fixes #11474
This commit is contained in:
Harshavardhana
2021-02-08 08:51:12 -08:00
committed by GitHub
parent 8e1bbd989a
commit 6fef4c21b9
2 changed files with 3 additions and 2 deletions

View File

@@ -27,10 +27,10 @@ import (
//
// A zero Group can be used if errors should not be tracked.
type Group struct {
firstErr int64 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG
wg sync.WaitGroup
bucket chan struct{}
errs []error
firstErr int64
cancel context.CancelFunc
ctxCancel <-chan struct{} // nil if no context.
ctxErr func() error