X-Git-Url: https://git.giacomolli.uk/onehouse/blobdiff_plain/2015860819c6228bf5ec708a48e5ca9b7c04e27d..b9a4f3bdd2609a8b178dd42f313c383ccb59049b:/driver/runner.go?ds=sidebyside diff --git a/driver/runner.go b/driver/runner.go index e918416..b40702b 100644 --- a/driver/runner.go +++ b/driver/runner.go @@ -31,7 +31,10 @@ func Run(ctx context.Context, drivers []Driver, connected <-chan struct{}) error for index, integration := range drivers { workers.Go(func() { - results <- driverResult{index: index, err: integration.Run(ctx)} + results <- driverResult{ + index: index, + err: integration.Run(ctx), + } }) } @@ -68,11 +71,6 @@ func Run(ctx context.Context, drivers []Driver, connected <-chan struct{}) error return errors.Join(failures...) } -type driverResult struct { - index int - err error -} - func stopOnly(err error, cancellation error) bool { joined, ok := err.(interface{ Unwrap() []error }) if ok {