diff options
Diffstat (limited to 'internal/processing/fromcommon.go')
-rw-r--r-- | internal/processing/fromcommon.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/processing/fromcommon.go b/internal/processing/fromcommon.go index 8e7f20145..1b470918d 100644 --- a/internal/processing/fromcommon.go +++ b/internal/processing/fromcommon.go @@ -365,14 +365,13 @@ func (p *processor) timelineStatus(ctx context.Context, status *gtsmodel.Status) // read any errors that come in from the async functions errs := []string{} - go func() { + go func(errs []string) { for range errors { - e := <-errors - if e != nil { + if e := <-errors; e != nil { errs = append(errs, e.Error()) } } - }() + }(errs) // wait til all functions have returned and then close the error channel wg.Wait() |